-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
compactor: Consider incrementing either ...group_compactions_total
or ...group_vertical_compactions_total
not both.
#2469
Comments
Related TODO: thanos/test/e2e/compact_test.go Line 511 in 7c5bea6
and discussion: #2462 (review) |
I personally think this is the right behavior. Along the lines of total and corresponding error metric where total always includes errors. |
Thanks. In this case, maybe we should rename / clarify this in HELP (: |
Agreed! |
Agree. It's also who TSDB metrics work:
|
The TODO is already removed in 2654a10 The HELP text is currently: Name: "thanos_compact_group_compactions_total",
Help: "Total number of group compaction attempts that resulted in a new block.",
Name: "thanos_compact_group_vertical_compactions_total",
Help: "Total number of group compaction attempts that resulted in a new block based on overlapping blocks.", Any ideas on whether it change it? One possible alternative can be: Name: "thanos_compact_group_compactions_total",
Help: "Total number of group compaction attempts that resulted in a new block regardless of cause.",
Name: "thanos_compact_group_vertical_compactions_total",
Help: "Total number of group compaction attempts that resulted in a new block based on overlapping blocks.", |
Hello 👋 Looks like there was no activity on this issue for last 30 days. |
Looks like this is done after all, thanks all for discussion (: |
This is why metric testing and e2e tests are awesome! I found some unexpected cases that were surprising. One of them is that on vertical compaction we increment both vertical and normal compaction, which is confusing as it looks like in total we had 2 compactions, not one.
I think we should increment just either normal or vertical or just add a label to this metric (better).
Marking as bug, let's fix it.
The text was updated successfully, but these errors were encountered: