Skip to content

Commit 65c0a89

Browse files
committed
rm_stm: aggregate per-partition metrics
When metrics aggregation is turned on, we want to aggregate away the partition labels on most metrics: this wasn't occurring in the tx metrics. This change enable aggregation on the partition label for almost all three metrics in this probe. Issue redpanda-data#15811. Issue redpanda-data/core-internal#677.
1 parent 27e6e2b commit 65c0a89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/v/cluster/rm_stm.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2498,7 +2498,7 @@ void rm_stm::setup_metrics() {
24982498
labels),
24992499
},
25002500
{},
2501-
{sm::shard_label});
2501+
{sm::shard_label, partition_label});
25022502
}
25032503

25042504
ss::future<> rm_stm::maybe_log_tx_stats() {

0 commit comments

Comments
 (0)