Skip to content

Commit

Permalink
fix(grafana): show uploading memory by instances (#9640)
Browse files Browse the repository at this point in the history
  • Loading branch information
fuyufjh authored May 6, 2023
1 parent 06803cb commit 300823c
Show file tree
Hide file tree
Showing 4 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.

4 changes: 2 additions & 2 deletions grafana/risingwave-dev-dashboard.dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -1759,8 +1759,8 @@ def section_hummock(panels):
"data cache - {{job}} @ {{instance}}",
),
panels.target(
f"sum({metric('state_store_limit_memory_size')}) by (job)",
"uploading memory - {{job}}",
f"sum({metric('state_store_limit_memory_size')}) by (job,instance)",
"uploading memory - {{job}} @ {{instance}}",
),
],
),
Expand Down
2 changes: 1 addition & 1 deletion grafana/risingwave-dev-dashboard.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/storage/src/monitor/hummock_state_store_metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ impl StateStoreCollector {
descs.extend(meta_cache_size.desc().into_iter().cloned());
let limit_memory_size = IntGauge::with_opts(Opts::new(
"state_store_limit_memory_size",
"the size of cache for meta file cache",
"the size of uploading SSTs memory usage",
))
.unwrap();
descs.extend(limit_memory_size.desc().into_iter().cloned());
Expand Down

0 comments on commit 300823c

Please sign in to comment.