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

Add counter metrics for total requests going to queue #5030

Merged
merged 4 commits into from Dec 10, 2022

Conversation

yeya24
Copy link
Collaborator

@yeya24 yeya24 commented Dec 9, 2022

Signed-off-by: Ben Ye benye@amazon.com

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 <benye@amazon.com>
Signed-off-by: Ben Ye <benye@amazon.com>
Signed-off-by: Ben Ye <benye@amazon.com>
Signed-off-by: Ben Ye <benye@amazon.com>
@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 <benye@amazon.com>

* update changelog

Signed-off-by: Ben Ye <benye@amazon.com>

* fix lint

Signed-off-by: Ben Ye <benye@amazon.com>

* lint

Signed-off-by: Ben Ye <benye@amazon.com>

Signed-off-by: Ben Ye <benye@amazon.com>
Signed-off-by: Alex Le <leqiyue@amazon.com>
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.

None yet

2 participants