Skip to content

Commit

Permalink
metrics: fix the metrics cannot be displayed (tikv#11710)
Browse files Browse the repository at this point in the history
ref tikv#11662

Signed-off-by: Ryan Leung <[email protected]>

Co-authored-by: Ti Chi Robot <[email protected]>
  • Loading branch information
rleungx and ti-chi-bot authored Dec 23, 2021
1 parent acbf3b1 commit 205e1b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions metrics/grafana/tikv_details.json
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@
"steppedLine": false,
"targets": [
{
"expr": "sum(rate(process_cpu_seconds_total{tidb_cluster=\"$tidb_cluster\", instance=~\"$instance\", job=\"tikv\"}[1m])) by (instance)",
"expr": "sum(rate(process_cpu_seconds_total{tidb_cluster=\"$tidb_cluster\", instance=~\"$instance\", job=~\".*tikv\"}[1m])) by (instance)",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "{{instance}}",
Expand Down Expand Up @@ -841,7 +841,7 @@
"steppedLine": false,
"targets": [
{
"expr": "avg(process_resident_memory_bytes{tidb_cluster=\"$tidb_cluster\", job=\"tikv\"}) by (instance)",
"expr": "avg(process_resident_memory_bytes{tidb_cluster=\"$tidb_cluster\", job=~\".*tikv\"}) by (instance)",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "{{instance}}",
Expand Down Expand Up @@ -1633,7 +1633,7 @@
"steppedLine": false,
"targets": [
{
"expr": "(time() - process_start_time_seconds{tidb_cluster=\"$tidb_cluster\", job=\"tikv\"})",
"expr": "(time() - process_start_time_seconds{tidb_cluster=\"$tidb_cluster\", job=~\".*tikv\"})",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "{{instance}}",
Expand Down

0 comments on commit 205e1b8

Please sign in to comment.