-
Notifications
You must be signed in to change notification settings - Fork 750
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add metric for tmax timeout exceed count #2892
Conversation
- As of now, `bidderRequestStartTime` is part of `ExtraRequestInfo`. The ExtraRequestInfo is further passed as details to Adapter's MakeRequest() implementation. - We don't want to pass bidderRequestStartTime details to `MakeRequest()`. So remove bidderRequestStartTime from ExtraRequestInfo and add it in bidRequestOptions.
metrics/prometheus/prometheus.go
Outdated
@@ -197,6 +198,10 @@ func NewMetrics(cfg config.PrometheusMetrics, disabledMetrics config.DisabledMet | |||
"connections_opened", | |||
"Count of successful connections opened to Prebid Server.") | |||
|
|||
metrics.tmaxTimeout = newCounterWithoutLabels(cfg, reg, | |||
"tmax_timeout", | |||
"Count of requests rejected due to timeout exceed.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets add tmax in description. How about Count of requests rejected due to Tmax timeout exceed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated description in 62c4b50
ec51657
to
1b6ebea
Compare
Hi @Sonali-More-Xandr . This pull request has been unblocked but there are conflicts that must be resolved. |
# Conflicts: # exchange/bidder.go # exchange/exchange.go
e44b312
to
43f7d59
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
We have added Tmax.BidderResponseDurationMin check in auction workflow. As per this change, PBS won't send request to bidder server if remaining duration less than BidderResponseDurationMin. This PR adds a counter metric for such rejected request.