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 source label to query stats metrics #6470

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

Conversation

SungJin1212
Copy link
Contributor

This PR adds a source label to query stat metrics.

Use case

When the user enables -ruler.frontend-address, the query stat metrics get changed whenever the ruler evaluates the rules. In other words, the query stat metrics are influenced by ruler and other source even though the user wants to track the metrics only by other source.
This PR attaches the source label to address this situation.

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 component/rules Bits & bobs todo with rules and alerts: the ruler, config service etc. labels Jan 2, 2025
@SungJin1212 SungJin1212 force-pushed the Add-source-label-to-query-stats-metrics branch from 9f10b72 to 3f1344a Compare January 2, 2025 01:56
@SungJin1212 SungJin1212 force-pushed the Add-source-label-to-query-stats-metrics branch from 3f1344a to 7b3c0a1 Compare January 2, 2025 11:01
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/query-frontend component/rules Bits & bobs todo with rules and alerts: the ruler, config service etc. lgtm This PR has been approved by a maintainer size/M
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants