Skip to content

compact: fix increment of thanos_compact_downsample_total counter#2895

Merged
squat merged 1 commit intothanos-io:masterfrom
belm0:patch-3
Jul 15, 2020
Merged

compact: fix increment of thanos_compact_downsample_total counter#2895
squat merged 1 commit intothanos-io:masterfrom
belm0:patch-3

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