Skip to content

Commit c59b3eb

Browse files
committed
use more sugar
Signed-off-by: Bugen Zhao <[email protected]>
1 parent 3513fc8 commit c59b3eb

File tree

2 files changed

+6
-14
lines changed

2 files changed

+6
-14
lines changed

grafana/risingwave-dev-dashboard.dashboard.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1122,6 +1122,8 @@ def section_streaming_cdc(outer_panels):
11221122

11231123

11241124
def section_streaming_actors(outer_panels: Panels):
1125+
# The actor_id can be masked due to metrics level settings.
1126+
# We use this filter to suppress the actor-level panels if applicable.
11251127
actor_level_filter = "actor_id!=''"
11261128
panels = outer_panels.sub_panel()
11271129
return [

src/stream/src/executor/monitor/streaming_stats.rs

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -397,27 +397,17 @@ impl StreamingMetrics {
397397
&["actor_id", "fragment_id", "upstream_fragment_id"],
398398
registry
399399
)
400-
.unwrap();
401-
let actor_in_record_cnt = RelabeledGuardedIntCounterVec::with_metric_level_relabel_n(
402-
MetricLevel::Debug,
403-
actor_in_record_cnt,
404-
level,
405-
1,
406-
);
400+
.unwrap()
401+
.relabel_debug_1(level);
407402

408403
let actor_out_record_cnt = register_guarded_int_counter_vec_with_registry!(
409404
"stream_actor_out_record_cnt",
410405
"Total number of rows actor sent",
411406
&["actor_id", "fragment_id"],
412407
registry
413408
)
414-
.unwrap();
415-
let actor_out_record_cnt = RelabeledGuardedIntCounterVec::with_metric_level_relabel_n(
416-
MetricLevel::Debug,
417-
actor_out_record_cnt,
418-
level,
419-
1,
420-
);
409+
.unwrap()
410+
.relabel_debug_1(level);
421411

422412
let actor_count = register_guarded_int_gauge_vec_with_registry!(
423413
"stream_actor_count",

0 commit comments

Comments
 (0)