Skip to content

Add counter metrics for total requests going to queue #5030

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

Merged
merged 4 commits into from
Dec 10, 2022

Conversation

yeya24
Copy link
Contributor

@yeya24 yeya24 commented Dec 9, 2022

Signed-off-by: Ben Ye [email protected]

What this PR does:

Add a new counter metric cortex_request_queue_requests_total in the query queue for total requests.
This is useful to calculate the rate because we only have a gauge metric for queue length before so it is hard to know how many requests are there and its rate.

Which issue(s) this PR fixes:
Fixes #

Checklist

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

Signed-off-by: Ben Ye <[email protected]>
Signed-off-by: Ben Ye <[email protected]>
Signed-off-by: Ben Ye <[email protected]>
@yeya24 yeya24 merged commit a602a7f into cortexproject:master Dec 10, 2022
@yeya24 yeya24 deleted the queue-counter branch December 10, 2022 00:59
alexqyle pushed a commit to alexqyle/cortex that referenced this pull request May 2, 2023
…5030)

* add counter metrics for total requests going to queue

Signed-off-by: Ben Ye <[email protected]>

* update changelog

Signed-off-by: Ben Ye <[email protected]>

* fix lint

Signed-off-by: Ben Ye <[email protected]>

* lint

Signed-off-by: Ben Ye <[email protected]>

Signed-off-by: Ben Ye <[email protected]>
Signed-off-by: Alex Le <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants