[#38] grafana: Add node instance state

Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
Dmitrii Stepanov 2023-08-02 16:14:29 +03:00
parent 4f9285251f
commit d5ee290740

View file

@ -23,18 +23,140 @@
"liveNow": false, "liveNow": false,
"panels": [ "panels": [
{ {
"collapsed": false, "datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "Instance state",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": true,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 3,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"decimals": 0,
"mappings": [
{
"options": {
"0": {
"index": 0,
"text": "Undefined"
},
"1": {
"index": 1,
"text": "Starting"
},
"2": {
"index": 2,
"text": "Ready"
},
"3": {
"index": 3,
"text": "Shutting down"
}
},
"type": "value"
}
],
"max": 3,
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "string"
},
"overrides": []
},
"gridPos": { "gridPos": {
"h": 1, "h": 6,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 0 "y": 0
}, },
"id": 2, "id": 21,
"panels": [], "options": {
"title": "Server", "legend": {
"type": "row" "calcs": [],
"displayMode": "table",
"placement": "right",
"showLegend": false
}, },
"tooltip": {
"mode": "multi",
"sort": "desc"
}
},
"pluginVersion": "9.5.6",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"editorMode": "code",
"exemplar": false,
"expr": "frostfs_node_state_health{job=\"node\", instance=\"$instance\"}\n",
"format": "time_series",
"instant": false,
"interval": "",
"legendFormat": "state",
"range": true,
"refId": "A"
}
],
"title": "State",
"transformations": [],
"type": "timeseries"
},
{
"collapsed": true,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 6
},
"id": 2,
"panels": [
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
@ -101,7 +223,7 @@
"h": 10, "h": 10,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 1 "y": 7
}, },
"id": 1, "id": 1,
"options": { "options": {
@ -196,13 +318,38 @@
}, },
"unit": "percent" "unit": "percent"
}, },
"overrides": [] "overrides": [
{
"__systemRef": "hideSeriesFrom",
"matcher": {
"id": "byNames",
"options": {
"mode": "exclude",
"names": [
"neo.fs.v2.object.ObjectService.Search"
],
"prefix": "All except:",
"readOnly": true
}
},
"properties": [
{
"id": "custom.hideFrom",
"value": {
"legend": false,
"tooltip": false,
"viz": true
}
}
]
}
]
}, },
"gridPos": { "gridPos": {
"h": 10, "h": 10,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 11 "y": 17
}, },
"id": 3, "id": 3,
"options": { "options": {
@ -302,7 +449,7 @@
"h": 10, "h": 10,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 21 "y": 27
}, },
"id": 4, "id": 4,
"options": { "options": {
@ -338,6 +485,10 @@
"title": "Latency", "title": "Latency",
"transformations": [], "transformations": [],
"type": "timeseries" "type": "timeseries"
}
],
"title": "Server",
"type": "row"
}, },
{ {
"collapsed": true, "collapsed": true,
@ -345,7 +496,7 @@
"h": 1, "h": 1,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 31 "y": 7
}, },
"id": 6, "id": 6,
"panels": [ "panels": [
@ -398,8 +549,7 @@
"mode": "absolute", "mode": "absolute",
"steps": [ "steps": [
{ {
"color": "green", "color": "green"
"value": null
}, },
{ {
"color": "red", "color": "red",
@ -499,8 +649,7 @@
"mode": "absolute", "mode": "absolute",
"steps": [ "steps": [
{ {
"color": "green", "color": "green"
"value": null
}, },
{ {
"color": "red", "color": "red",
@ -599,8 +748,7 @@
"mode": "absolute", "mode": "absolute",
"steps": [ "steps": [
{ {
"color": "green", "color": "green"
"value": null
}, },
{ {
"color": "red", "color": "red",
@ -699,8 +847,7 @@
"mode": "absolute", "mode": "absolute",
"steps": [ "steps": [
{ {
"color": "green", "color": "green"
"value": null
}, },
{ {
"color": "red", "color": "red",
@ -833,8 +980,7 @@
"mode": "absolute", "mode": "absolute",
"steps": [ "steps": [
{ {
"color": "green", "color": "green"
"value": null
}, },
{ {
"color": "red", "color": "red",
@ -897,7 +1043,7 @@
"h": 1, "h": 1,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 32 "y": 8
}, },
"id": 12, "id": 12,
"panels": [ "panels": [
@ -967,7 +1113,7 @@
"h": 10, "h": 10,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 33 "y": 39
}, },
"id": 13, "id": 13,
"options": { "options": {
@ -1068,7 +1214,7 @@
"h": 10, "h": 10,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 43 "y": 49
}, },
"id": 15, "id": 15,
"options": { "options": {
@ -1168,7 +1314,7 @@
"h": 10, "h": 10,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 53 "y": 59
}, },
"id": 14, "id": 14,
"options": { "options": {
@ -1268,7 +1414,7 @@
"h": 10, "h": 10,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 63 "y": 69
}, },
"id": 16, "id": 16,
"options": { "options": {
@ -1368,7 +1514,7 @@
"h": 10, "h": 10,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 73 "y": 79
}, },
"id": 17, "id": 17,
"options": { "options": {
@ -1468,7 +1614,7 @@
"h": 10, "h": 10,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 83 "y": 89
}, },
"id": 18, "id": 18,
"options": { "options": {
@ -1570,7 +1716,7 @@
"h": 10, "h": 10,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 93 "y": 99
}, },
"id": 19, "id": 19,
"options": { "options": {