Skip to content

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
@SungJin1212 SungJin1212 force-pushed the Add-metric-for-tracking-slow-queries branch from af95aa9 to 3a33a39 Compare July 7, 2025 07:09
Copy link
Contributor

@yeya24 yeya24 left a comment

Choose a reason for hiding this comment

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

Thanks!

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jul 8, 2025
@friedrichg friedrichg merged commit 4457537 into cortexproject:master Jul 8, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/query-frontend lgtm This PR has been approved by a maintainer 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.

3 participants