From 201855e72958978118c8ff9e2aede2c757acf5bc Mon Sep 17 00:00:00 2001 From: Dmitrii Stepanov Date: Thu, 3 Aug 2023 15:57:07 +0300 Subject: [PATCH] [#38] grafana: Add epoch dashboard Signed-off-by: Dmitrii Stepanov --- .../provisioning/dashboards/storage-node.json | 108 ++++++++++++++---- 1 file changed, 87 insertions(+), 21 deletions(-) diff --git a/services/grafana/provisioning/dashboards/storage-node.json b/services/grafana/provisioning/dashboards/storage-node.json index 264ad20..4aaaebf 100644 --- a/services/grafana/provisioning/dashboards/storage-node.json +++ b/services/grafana/provisioning/dashboards/storage-node.json @@ -32,7 +32,7 @@ }, "id": 22, "panels": [], - "title": "Health", + "title": "General", "type": "row" }, { @@ -121,7 +121,7 @@ }, "gridPos": { "h": 6, - "w": 24, + "w": 12, "x": 0, "y": 1 }, @@ -160,6 +160,72 @@ "transformations": [], "type": "timeseries" }, + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "description": "Current epoch on the instance", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "green", + "mode": "fixed" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 12, + "y": 1 + }, + "id": 32, + "options": { + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true + }, + "pluginVersion": "9.5.6", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "editorMode": "code", + "expr": "frostfs_node_ir_epoch{job=\"node\", instance=\"$instance\"}", + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Epoch", + "type": "gauge" + }, { "collapsed": false, "gridPos": { @@ -577,7 +643,7 @@ "h": 10, "w": 24, "x": 0, - "y": 32 + "y": 40 }, "id": 8, "options": { @@ -677,7 +743,7 @@ "h": 10, "w": 24, "x": 0, - "y": 42 + "y": 50 }, "id": 9, "options": { @@ -776,7 +842,7 @@ "h": 10, "w": 24, "x": 0, - "y": 52 + "y": 60 }, "id": 10, "options": { @@ -875,7 +941,7 @@ "h": 10, "w": 24, "x": 0, - "y": 62 + "y": 70 }, "id": 7, "options": { @@ -1008,7 +1074,7 @@ "h": 10, "w": 24, "x": 0, - "y": 72 + "y": 80 }, "id": 11, "options": { @@ -1125,7 +1191,7 @@ "h": 10, "w": 24, "x": 0, - "y": 40 + "y": 48 }, "id": 13, "options": { @@ -1226,7 +1292,7 @@ "h": 10, "w": 24, "x": 0, - "y": 50 + "y": 58 }, "id": 15, "options": { @@ -1326,7 +1392,7 @@ "h": 10, "w": 24, "x": 0, - "y": 60 + "y": 68 }, "id": 14, "options": { @@ -1426,7 +1492,7 @@ "h": 10, "w": 24, "x": 0, - "y": 70 + "y": 78 }, "id": 16, "options": { @@ -1526,7 +1592,7 @@ "h": 10, "w": 24, "x": 0, - "y": 80 + "y": 88 }, "id": 17, "options": { @@ -1626,7 +1692,7 @@ "h": 10, "w": 24, "x": 0, - "y": 90 + "y": 98 }, "id": 18, "options": { @@ -1728,7 +1794,7 @@ "h": 10, "w": 24, "x": 0, - "y": 100 + "y": 108 }, "id": 19, "options": { @@ -1842,7 +1908,7 @@ "h": 10, "w": 24, "x": 0, - "y": 75 + "y": 83 }, "id": 24, "options": { @@ -1942,7 +2008,7 @@ "h": 10, "w": 24, "x": 0, - "y": 85 + "y": 93 }, "id": 25, "options": { @@ -2042,7 +2108,7 @@ "h": 10, "w": 24, "x": 0, - "y": 95 + "y": 103 }, "id": 26, "options": { @@ -2159,7 +2225,7 @@ "h": 10, "w": 24, "x": 0, - "y": 112 + "y": 120 }, "id": 28, "options": { @@ -2260,7 +2326,7 @@ "h": 10, "w": 24, "x": 0, - "y": 122 + "y": 130 }, "id": 29, "options": { @@ -2360,7 +2426,7 @@ "h": 10, "w": 24, "x": 0, - "y": 132 + "y": 140 }, "id": 30, "options": { @@ -2463,7 +2529,7 @@ "h": 10, "w": 24, "x": 0, - "y": 142 + "y": 150 }, "id": 31, "options": {