-
Notifications
You must be signed in to change notification settings - Fork 529
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
Ingester: add cortex_ingester_circuit_breaker_request_timeouts_total metric #8446
Conversation
f7cb50c
to
0f44a44
Compare
…metric Signed-off-by: Yuri Nikolic <durica.nikolic@grafana.com>
0f44a44
to
d8d0a18
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, thank you.
pkg/ingester/circuitbreaker.go
Outdated
@@ -48,6 +49,11 @@ func newCircuitBreakerMetrics(r prometheus.Registerer, currentState func() circu | |||
Help: "Results of executing requests via the circuit breaker.", | |||
ConstLabels: map[string]string{circuitBreakerRequestTypeLabel: requestType}, | |||
}, []string{"result"}), | |||
circuitBreakerRequestTimeouts: promauto.With(r).NewCounter(prometheus.CounterOpts{ | |||
Name: "cortex_ingester_circuit_breaker_request_timeouts_total", | |||
Help: "Number of times a circuit breaker request reached a timeout.", |
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.
Is it a "circuit breaker request"? Or rather a request that reached timeout, that we registered into circuit breaker.
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.
I have changed it into "Number of times the circuit breaker recorded a request that reached timeout."
Signed-off-by: Yuri Nikolic <durica.nikolic@grafana.com>
…metric (#8446) * Ingester: add cortex_ingester_circuit_breaker_request_timeouts_total metric Signed-off-by: Yuri Nikolic <durica.nikolic@grafana.com> * Fixing review findings Signed-off-by: Yuri Nikolic <durica.nikolic@grafana.com> --------- Signed-off-by: Yuri Nikolic <durica.nikolic@grafana.com> (cherry picked from commit c279dc5)
…metric (#8446) (#8474) * Ingester: add cortex_ingester_circuit_breaker_request_timeouts_total metric Signed-off-by: Yuri Nikolic <durica.nikolic@grafana.com> * Fixing review findings Signed-off-by: Yuri Nikolic <durica.nikolic@grafana.com> --------- Signed-off-by: Yuri Nikolic <durica.nikolic@grafana.com> (cherry picked from commit c279dc5) Co-authored-by: Đurica Yuri Nikolić <durica.nikolic@grafana.com>
What this PR does
This PR introduces the
cortex_ingester_circuit_breaker_request_timeouts_total
metrics that keeps track of ingester circuit breaker requests timeouts. These timeouts are relevant for circuit breaker only, and are never returned to distributors. By using this metrics it is possible to verify the number of occurrences of these timeouts.Which issue(s) this PR fixes or relates to
Fixes #
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]
.about-versioning.md
updated with experimental features.