Skip to content

Commit c4b5de9

Browse files
authored
metrics: support go-memstats-inuse and estimate-inuse (#43151) (#46117)
close #46120
1 parent 03590c1 commit c4b5de9

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

metrics/grafana/tidb_runtime.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,19 @@
142142
"refId": "A"
143143
},
144144
{
145-
"expr": "go_memstats_alloc_bytes{k8s_cluster=\"$k8s_cluster\",tidb_cluster=\"$tidb_cluster\", instance=~\"$instance\"}",
145+
"expr": "go_memstats_next_gc_bytes{k8s_cluster=\"$k8s_cluster\",tidb_cluster=\"$tidb_cluster\", instance=~\"$instance\"} / (1 + tidb_server_gogc{k8s_cluster=\"$k8s_cluster\",tidb_cluster=\"$tidb_cluster\", instance=~\"$instance\"} / 100)",
146146
"format": "time_series",
147147
"hide": false,
148148
"intervalFactor": 1,
149149
"legendFormat": "estimate-inuse",
150+
"refId": "I"
151+
},
152+
{
153+
"expr": "go_memstats_alloc_bytes{k8s_cluster=\"$k8s_cluster\",tidb_cluster=\"$tidb_cluster\", instance=~\"$instance\"}",
154+
"format": "time_series",
155+
"hide": false,
156+
"intervalFactor": 1,
157+
"legendFormat": "go-memstats-inuse",
150158
"refId": "H"
151159
},
152160
{

0 commit comments

Comments
 (0)