blockbuilder: fix fetch metric types#6578
Conversation
|
Hi, thanks for catching this. I'm good with fixing the metric type, but do we need to rename them? In our minds |
Hi, the original name is indeed better. I mainly changed it to follow the suggestion in issue #6558. Let me know how you'd like to proceed: revert to the original name if we're okay with the type change, or go with any other name you suggest. |
|
@WinterCabbage Discussed with @zhxiaogg and we want to keep the original metric name. Just changing the type should be fine. |
580b49b to
6d3a2ba
Compare
|
@WinterCabbage Hi the PR lgtm after the last changes. Can you please resolve the merge conflict and update the PR description, and then we can merge. |
Follow-up to grafana#6558 metric type audit. - switch block-builder fetch metrics from gauge to counter - rename metrics to tempo_block_builder_queue_fetch_bytes_total and tempo_block_builder_queue_fetch_records_total - update blockbuilder unit/integration tests - update mixin dashboard sources and compiled JSON - document breaking metric rename in upgrade notes and changelog Refs grafana#6558.
6d3a2ba to
eeaa6f4
Compare
Hi thanks for the review. I have rebased the commit and updated the PR description. |
| * [BUGFIX] fix: skip per-label limiter and sanitizer for target_info and host_info metrics in metrics-generator [#6660](https://github.com/grafana/tempo/pull/6660) (@electron0zero) | ||
| * [BUGFIX] fix(traceql): err on division by zero [#6580](https://github.com/grafana/tempo/pull/6580) (@Proximyst) | ||
| * [BUGFIX] Return 400 instead of 500 when query_range or query_instant requests have unparseable start/end parameters [#6694](https://github.com/grafana/tempo/pull/6694) (@ruslan-mikhailov) | ||
| * [CHANGE] jsonnet: Add emptyDir data volume to block-builder StatefulSet [#6648](https://github.com/grafana/tempo/pull/6648) (@mapno) |
There was a problem hiding this comment.
| * [CHANGE] jsonnet: Add emptyDir data volume to block-builder StatefulSet [#6648](https://github.com/grafana/tempo/pull/6648) (@mapno) |
This looks like a spurious copy from above, let's remove.
There was a problem hiding this comment.
Good catch, sorry about that. It was accidentally copied in during the rebase. I'll remove it now.
Also removed an accidental duplicate changelog entry introduced earlier in this branch.
eeaa6f4 to
e0bfc74
Compare
What this PR does:
tempo_block_builder_fetch_bytes_totaltempo_block_builder_fetch_records_totalcounteris the correct Prometheus semantic forrate()/increase().modules/blockbuilder/blockbuilder.go.modules/blockbuilder/blockbuilder_test.goto verify fetch metric increments.CHANGELOG.md.Which issue(s) this PR fixes:
Fixes #6558
Checklist
CHANGELOG.mdupdated - the order of entries should be[CHANGE],[FEATURE],[ENHANCEMENT],[BUGFIX]