Skip to content
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

Merged
merged 3 commits into from
Jun 20, 2024

Conversation

duricanikolic
Copy link
Contributor

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

  • Tests updated.
  • [na] Documentation added.
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX].
  • [na] about-versioning.md updated with experimental features.

@duricanikolic duricanikolic self-assigned this Jun 20, 2024
@duricanikolic duricanikolic requested a review from a team as a code owner June 20, 2024 14:58
…metric

Signed-off-by: Yuri Nikolic <durica.nikolic@grafana.com>
Copy link
Member

@pstibrany pstibrany left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thank you.

@@ -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.",
Copy link
Member

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.

Copy link
Contributor Author

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."

@duricanikolic duricanikolic merged commit c279dc5 into main Jun 20, 2024
29 checks passed
@duricanikolic duricanikolic deleted the yuri/ingester-server-cb branch June 20, 2024 18:29
@duricanikolic duricanikolic mentioned this pull request Jun 21, 2024
66 tasks
grafanabot pushed a commit that referenced this pull request Jun 21, 2024
…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)
dimitarvdimitrov pushed a commit that referenced this pull request Jun 21, 2024
…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants