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

compact: fix increment of thanos_compact_downsample_total counter #2895

Merged
merged 1 commit into from
Jul 15, 2020

Conversation

belm0
Copy link
Contributor

@belm0 belm0 commented Jul 15, 2020

thanos_compact_downsample_total metric was not incremented for ResLevel1

  • I added CHANGELOG entry for this change.
  • Change is not relevant to the end user.

`thanos_compact_downsample_total` metric was not incremented for ResLevel1

Signed-off-by: John Belmonte <john@neggie.net>
@squat
Copy link
Member

squat commented Jul 15, 2020

Thanks a lot @belm0 :) this is a pretty common mistake and it would be great to have some static analysis to catch these issues

@squat squat merged commit 8cf5e85 into thanos-io:master Jul 15, 2020
@belm0
Copy link
Contributor Author

belm0 commented Jul 15, 2020

it would be great to have some static analysis to catch these

That would be hard, since it's valid to end at WithLabelValues() when initializing known label sets.

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