Skip to content

Commit

Permalink
chore(metrics): address metrics issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Li0k committed Sep 18, 2024
1 parent 5c257c2 commit 5274d34
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docker/dashboards/risingwave-dev-dashboard.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion grafana/risingwave-dev-dashboard.dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -3264,7 +3264,7 @@ def section_hummock_manager(outer_panels):

panels.target(
f"sum({table_metric('storage_merge_compaction_group_count')}) by (group)",
"merge_compaction_group_count left-{{group_left}} right-{{group_right}}",
"merge_compaction_group_count cg-{{group}}",
),
],
),
Expand Down
2 changes: 1 addition & 1 deletion grafana/risingwave-dev-dashboard.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ impl HummockManager {

self.metrics
.merge_compaction_group_count
.with_label_values(&[&group_1.to_string(), &group_2.to_string()])
.with_label_values(&[&left_group_id.to_string()])
.inc();

Ok(())
Expand Down
2 changes: 1 addition & 1 deletion src/meta/src/rpc/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ impl MetaMetrics {
let merge_compaction_group_count = register_int_counter_vec_with_registry!(
"storage_merge_compaction_group_count",
"Count of trigger merge compaction group",
&["group_left", "group_right"],
&["group"],
registry
)
.unwrap();
Expand Down

0 comments on commit 5274d34

Please sign in to comment.