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

Encoding use callbacks instead of direct compactor metrics #1433

Merged
merged 2 commits into from
Jun 10, 2022

Conversation

mdisibio
Copy link
Contributor

What this PR does:
This PR moves the tempodb compaction metrics back closer to their usage, and the encodings use callbacks instead of direct access. If we like this pattern we can extend it a bit further. I'm thinking of compaction_objects_combined_total which is measured by instrumenting an ObjectCombiner, however the future parquet encoding won't use that but a callback would work well.

Which issue(s) this PR fixes:
Fixes n/a

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

Copy link
Member

@joe-elliott joe-elliott left a comment

Choose a reason for hiding this comment

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

two minor/non-blocking comments. looks good!

tempodb/encoding/v2/compactor.go Show resolved Hide resolved
tempodb/compactor.go Outdated Show resolved Hide resolved
@mdisibio mdisibio merged commit ff2914f into grafana:main Jun 10, 2022
@annanay25 annanay25 mentioned this pull request Jun 11, 2022
3 tasks
@mdisibio mdisibio deleted the compactor-metrics-move branch April 25, 2023 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants