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

Enhance cortex_ingester_inflight_push_requests metric #6437

Conversation

alanprot
Copy link
Member

@alanprot alanprot commented Dec 18, 2024

What this PR does:
The cortex_ingester_inflight_push_requests metric currently monitors the inflightPushRequests atomic integer directly.

This approach can be misleading, as the value fluctuates significantly and only represents the exact value at the time of scraping.

This PR modifies the metric to report the maximum number of concurrent requests observed within each one-minute interval.

I think is fine changing this metric (instead of creating a new one) as the intent was always the same.

Which issue(s) this PR fixes:
Fixes #

Checklist

  • Tests updated
  • [NA] Documentation added
  • [NA] CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@SungJin1212
Copy link
Contributor

LGTM!

@alanprot alanprot merged commit d6f0d23 into cortexproject:master Dec 18, 2024
17 checks passed
@alanprot alanprot deleted the Enhance/cortex_ingester_inflight_push_requests branch December 18, 2024 02:17
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