Skip to content

Commit fbc2def

Browse files
authored
chore(monitor-snapshot/master): update files from upstreams (#1026)
1 parent 79334ea commit fbc2def

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

22 Bytes
Binary file not shown.

monitor-snapshot/master/operator/dashboards/tidb.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2181,7 +2181,7 @@
21812181
"targets": [
21822182
{
21832183
"exemplar": true,
2184-
"expr": "count(up{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", instance=~\"$instance\", job=\"tidb\"} == 1)",
2184+
"expr": "count(max(up{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", instance=~\"$instance\", job=\"tidb\"}) by (instance) == 1)",
21852185
"format": "time_series",
21862186
"hide": false,
21872187
"interval": "",
@@ -2192,7 +2192,7 @@
21922192
},
21932193
{
21942194
"exemplar": true,
2195-
"expr": "count(up{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", instance=~\"$instance\", job=\"tidb\"} == 0)",
2195+
"expr": "count(max(up{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", instance=~\"$instance\", job=\"tidb\"}) by (instance) == 0)",
21962196
"hide": false,
21972197
"interval": "",
21982198
"legendFormat": "Down",

0 commit comments

Comments
 (0)