Skip to content

Add a cortex_slow_queries_total to track # of slow queries #6859

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SungJin1212
Copy link
Member

This PR adds a cortex_slow_queries_total metric to track # of slow queries per user.
The cortex treats the query as slow when the query RTT is longer than the specified LogQueriesLongerThan.

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]

@dosubot dosubot bot added component/query-frontend type/observability To help know what is going on inside Cortex labels Jul 2, 2025
@SungJin1212 SungJin1212 force-pushed the Add-metric-for-tracking-slow-queries branch from 47b71ca to a8a633a Compare July 2, 2025 01:39
@SungJin1212 SungJin1212 force-pushed the Add-metric-for-tracking-slow-queries branch from a8a633a to 6615d8a Compare July 2, 2025 02:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/query-frontend size/M type/observability To help know what is going on inside Cortex
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant