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

Centralize metrics used by compactor and add user label to compactor metrics #6096

Merged
merged 6 commits into from
Jul 23, 2024

Conversation

alexqyle
Copy link
Contributor

@alexqyle alexqyle commented Jul 18, 2024

What this PR does:

Created compactor_metrics.go to have all compactor related metric in one place. Also, added user label to compactor metrics so end user could query metrics per tenant.

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]

…metrics.

Signed-off-by: Alex Le <leqiyue@amazon.com>
alexqyle added 3 commits July 17, 2024 17:19
Signed-off-by: Alex Le <leqiyue@amazon.com>
Signed-off-by: Alex Le <leqiyue@amazon.com>
Signed-off-by: Alex Le <leqiyue@amazon.com>
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.

Did we check if we changed any existing compactor metrics (names, labels, etc), and it might impact https://github.com/cortexproject/cortex-jsonnet?

Note: If we indeed changed something, should we call out in the changelog?

pkg/compactor/blocks_cleaner.go Outdated Show resolved Hide resolved
pkg/compactor/compactor_metrics.go Show resolved Hide resolved
Signed-off-by: Alex Le <leqiyue@amazon.com>
@alexqyle
Copy link
Contributor Author

Did we check if we changed any existing compactor metrics (names, labels, etc), and it might impact https://github.com/cortexproject/cortex-jsonnet?

Note: If we indeed changed something, should we call out in the changelog?

There is no metric got renamed in this PR. Some metrics now get extra user label. Quickly took a look at cortex-jsonnet project. As long as the query is using aggregation, extra label should not result in different result.

Signed-off-by: Alex Le <leqiyue@amazon.com>
@danielblando danielblando merged commit 3ae12a2 into cortexproject:master Jul 23, 2024
16 checks passed
@alexqyle alexqyle deleted the compactor-metrics branch July 23, 2024 19:38
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.

3 participants