From 8dcd639784422e8e015ab31f51023eecf701697f Mon Sep 17 00:00:00 2001 From: zwd1208 Date: Thu, 11 Nov 2021 19:36:44 +0800 Subject: [PATCH] [skip ci]Add component health state panel (#11673) Signed-off-by: Weida Zhu --- .../monitor/grafana/milvus-dashboard.json | 176 +++++++++++++++++- 1 file changed, 171 insertions(+), 5 deletions(-) diff --git a/deployments/monitor/grafana/milvus-dashboard.json b/deployments/monitor/grafana/milvus-dashboard.json index c7bae670c3..04c3ec2e77 100644 --- a/deployments/monitor/grafana/milvus-dashboard.json +++ b/deployments/monitor/grafana/milvus-dashboard.json @@ -16,9 +16,92 @@ "gnetId": null, "graphTooltip": 0, "id": 27, - "iteration": 1636445632181, + "iteration": 1636629445699, "links": [], "panels": [ + { + "datasource": "prometheus", + "description": "Current health state of RootCoord", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "from": "-65535", + "id": 1, + "text": "UP", + "to": "-1", + "type": 2, + "value": "0" + }, + { + "from": "0", + "id": 2, + "text": "DOWN", + "to": "1", + "type": 1, + "value": "0" + } + ], + "noValue": "N/A", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "dark-red", + "value": 0 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 4, + "x": 0, + "y": 0 + }, + "id": 123220, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "7.5.4", + "targets": [ + { + "exemplar": true, + "expr": "sum(up{app_kubernetes_io_instance=~\"$instance\", app_kubernetes_io_name=\"$app_name\", namespace=\"$namespace\",app_kubernetes_io_component=\"rootcoord\"})*(-1)", + "format": "time_series", + "interval": "", + "legendFormat": "", + "queryType": "randomWalk", + "refId": "A" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "RootCoord Health", + "type": "stat" + }, { "datasource": "prometheus", "description": "Current health state of DataCoord", @@ -65,8 +148,8 @@ }, "gridPos": { "h": 5, - "w": 6, - "x": 0, + "w": 4, + "x": 4, "y": 0 }, "id": 123219, @@ -102,6 +185,89 @@ "title": "DataCoord Health", "type": "stat" }, + { + "datasource": "prometheus", + "description": "Current health state of IndexCoord", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "from": "-65535", + "id": 1, + "text": "UP", + "to": "-1", + "type": 2, + "value": "0" + }, + { + "from": "0", + "id": 2, + "text": "DOWN", + "to": "1", + "type": 1, + "value": "0" + } + ], + "noValue": "N/A", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "dark-red", + "value": 0 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 4, + "x": 8, + "y": 0 + }, + "id": 123221, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "7.5.4", + "targets": [ + { + "exemplar": true, + "expr": "sum(up{app_kubernetes_io_instance=~\"$instance\", app_kubernetes_io_name=\"$app_name\", namespace=\"$namespace\",app_kubernetes_io_component=\"indexcoord\"})*(-1)", + "format": "time_series", + "interval": "", + "legendFormat": "", + "queryType": "randomWalk", + "refId": "A" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "IndexCoord Health", + "type": "stat" + }, { "collapsed": false, "datasource": null, @@ -5880,7 +6046,7 @@ "allValue": null, "current": { "isNone": true, - "selected": true, + "selected": false, "text": "None", "value": "" }, @@ -6008,5 +6174,5 @@ "timezone": "browser", "title": "Milvus2.0", "uid": "uLf5cJ3Gz", - "version": 148 + "version": 156 } \ No newline at end of file