[#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,
"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": {
"h": 1,
"h": 6,
"w": 24,
"x": 0,
"y": 0
},
"id": 2,
"panels": [],
"title": "Server",
"type": "row"
"id": 21,
"options": {
"legend": {
"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": {
"type": "prometheus",
@ -101,7 +223,7 @@
"h": 10,
"w": 24,
"x": 0,
"y": 1
"y": 7
},
"id": 1,
"options": {
@ -196,13 +318,38 @@
},
"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": {
"h": 10,
"w": 24,
"x": 0,
"y": 11
"y": 17
},
"id": 3,
"options": {
@ -302,7 +449,7 @@
"h": 10,
"w": 24,
"x": 0,
"y": 21
"y": 27
},
"id": 4,
"options": {
@ -338,6 +485,10 @@
"title": "Latency",
"transformations": [],
"type": "timeseries"
}
],
"title": "Server",
"type": "row"
},
{
"collapsed": true,
@ -345,7 +496,7 @@
"h": 1,
"w": 24,
"x": 0,
"y": 31
"y": 7
},
"id": 6,
"panels": [
@ -398,8 +549,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
@ -499,8 +649,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
@ -599,8 +748,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
@ -699,8 +847,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
@ -833,8 +980,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
@ -897,7 +1043,7 @@
"h": 1,
"w": 24,
"x": 0,
"y": 32
"y": 8
},
"id": 12,
"panels": [
@ -967,7 +1113,7 @@
"h": 10,
"w": 24,
"x": 0,
"y": 33
"y": 39
},
"id": 13,
"options": {
@ -1068,7 +1214,7 @@
"h": 10,
"w": 24,
"x": 0,
"y": 43
"y": 49
},
"id": 15,
"options": {
@ -1168,7 +1314,7 @@
"h": 10,
"w": 24,
"x": 0,
"y": 53
"y": 59
},
"id": 14,
"options": {
@ -1268,7 +1414,7 @@
"h": 10,
"w": 24,
"x": 0,
"y": 63
"y": 69
},
"id": 16,
"options": {
@ -1368,7 +1514,7 @@
"h": 10,
"w": 24,
"x": 0,
"y": 73
"y": 79
},
"id": 17,
"options": {
@ -1468,7 +1614,7 @@
"h": 10,
"w": 24,
"x": 0,
"y": 83
"y": 89
},
"id": 18,
"options": {
@ -1570,7 +1716,7 @@
"h": 10,
"w": 24,
"x": 0,
"y": 93
"y": 99
},
"id": 19,
"options": {