diff --git a/monitor-snapshot/master/ansible-monitor.tar.gz b/monitor-snapshot/master/ansible-monitor.tar.gz index 03046a05..a421c995 100644 Binary files a/monitor-snapshot/master/ansible-monitor.tar.gz and b/monitor-snapshot/master/ansible-monitor.tar.gz differ diff --git a/monitor-snapshot/master/operator/dashboards/tidb.json b/monitor-snapshot/master/operator/dashboards/tidb.json index 9c12d00e..5d8c763a 100644 --- a/monitor-snapshot/master/operator/dashboards/tidb.json +++ b/monitor-snapshot/master/operator/dashboards/tidb.json @@ -2181,7 +2181,7 @@ "targets": [ { "exemplar": true, - "expr": "count(up{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", instance=~\"$instance\", job=\"tidb\"} == 1)", + "expr": "count(max(up{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", instance=~\"$instance\", job=\"tidb\"}) by (instance) == 1)", "format": "time_series", "hide": false, "interval": "", @@ -2192,7 +2192,7 @@ }, { "exemplar": true, - "expr": "count(up{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", instance=~\"$instance\", job=\"tidb\"} == 0)", + "expr": "count(max(up{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", instance=~\"$instance\", job=\"tidb\"}) by (instance) == 0)", "hide": false, "interval": "", "legendFormat": "Down",