[skip ci]Add component health state panel (#11673)

Signed-off-by: Weida Zhu <weida.zhu@zilliz.com>
This commit is contained in:
zwd1208 2021-11-11 19:36:44 +08:00 committed by GitHub
parent 7a3873960b
commit 8dcd639784
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,9 +16,92 @@
"gnetId": null, "gnetId": null,
"graphTooltip": 0, "graphTooltip": 0,
"id": 27, "id": 27,
"iteration": 1636445632181, "iteration": 1636629445699,
"links": [], "links": [],
"panels": [ "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", "datasource": "prometheus",
"description": "Current health state of DataCoord", "description": "Current health state of DataCoord",
@ -65,8 +148,8 @@
}, },
"gridPos": { "gridPos": {
"h": 5, "h": 5,
"w": 6, "w": 4,
"x": 0, "x": 4,
"y": 0 "y": 0
}, },
"id": 123219, "id": 123219,
@ -102,6 +185,89 @@
"title": "DataCoord Health", "title": "DataCoord Health",
"type": "stat" "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, "collapsed": false,
"datasource": null, "datasource": null,
@ -5880,7 +6046,7 @@
"allValue": null, "allValue": null,
"current": { "current": {
"isNone": true, "isNone": true,
"selected": true, "selected": false,
"text": "None", "text": "None",
"value": "" "value": ""
}, },
@ -6008,5 +6174,5 @@
"timezone": "browser", "timezone": "browser",
"title": "Milvus2.0", "title": "Milvus2.0",
"uid": "uLf5cJ3Gz", "uid": "uLf5cJ3Gz",
"version": 148 "version": 156
} }