Skip to content

Commit d6db1e8

Browse files
authored
pkg/metrics: make the golang gc mpanel more readable (#56039)
ref #55390
1 parent 8fb9eed commit d6db1e8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/metrics/grafana/tidb_runtime.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -2146,7 +2146,7 @@
21462146
"targets": [
21472147
{
21482148
"exemplar": true,
2149-
"expr": "irate(go_gc_cycles_automatic_gc_cycles_total{k8s_cluster=\"$k8s_cluster\",tidb_cluster=\"$tidb_cluster\", instance=~\"$instance\"}[30s])",
2149+
"expr": "increase(go_gc_cycles_automatic_gc_cycles_total{k8s_cluster=\"$k8s_cluster\",tidb_cluster=\"$tidb_cluster\", instance=~\"$instance\"}[1m])",
21502150
"format": "time_series",
21512151
"hide": false,
21522152
"instant": false,
@@ -2158,7 +2158,7 @@
21582158
},
21592159
{
21602160
"exemplar": true,
2161-
"expr": "irate(go_gc_cycles_forced_gc_cycles_total{k8s_cluster=\"$k8s_cluster\",tidb_cluster=\"$tidb_cluster\", instance=~\"$instance\"}[30s])",
2161+
"expr": "increase(go_gc_cycles_forced_gc_cycles_total{k8s_cluster=\"$k8s_cluster\",tidb_cluster=\"$tidb_cluster\", instance=~\"$instance\"}[1m])",
21622162
"format": "time_series",
21632163
"hide": false,
21642164
"instant": false,
@@ -2170,7 +2170,7 @@
21702170
},
21712171
{
21722172
"exemplar": true,
2173-
"expr": "irate(go_gc_cycles_total_gc_cycles_total{k8s_cluster=\"$k8s_cluster\",tidb_cluster=\"$tidb_cluster\", instance=~\"$instance\"}[30s])",
2173+
"expr": "increase(go_gc_cycles_total_gc_cycles_total{k8s_cluster=\"$k8s_cluster\",tidb_cluster=\"$tidb_cluster\", instance=~\"$instance\"}[1m])",
21742174
"format": "time_series",
21752175
"hide": false,
21762176
"instant": false,

0 commit comments

Comments
 (0)