From 840263dd2c610ed88bde2ce34f36a3c93f409600 Mon Sep 17 00:00:00 2001 From: miazn Date: Fri, 22 Mar 2024 13:50:49 -0400 Subject: [PATCH 1/4] update grafana --- node/metrics/snarkOS-grafana.json | 1210 +++++++++++------------------ 1 file changed, 475 insertions(+), 735 deletions(-) diff --git a/node/metrics/snarkOS-grafana.json b/node/metrics/snarkOS-grafana.json index 8e0a7cacfe..d86a954c8d 100644 --- a/node/metrics/snarkOS-grafana.json +++ b/node/metrics/snarkOS-grafana.json @@ -1,41 +1,4 @@ { - "__inputs": [ - { - "name": "DS_PROMETHEUS", - "label": "prometheus", - "description": "", - "type": "datasource", - "pluginId": "prometheus", - "pluginName": "Prometheus" - } - ], - "__elements": {}, - "__requires": [ - { - "type": "grafana", - "id": "grafana", - "name": "Grafana", - "version": "10.2.3" - }, - { - "type": "datasource", - "id": "prometheus", - "name": "Prometheus", - "version": "1.0.0" - }, - { - "type": "panel", - "id": "stat", - "name": "Stat", - "version": "" - }, - { - "type": "panel", - "id": "timeseries", - "name": "Time series", - "version": "" - } - ], "annotations": { "list": [ { @@ -61,11 +24,12 @@ "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, - "id": null, + "id": 1, "links": [], "liveNow": false, "panels": [ { + "collapsed": false, "gridPos": { "h": 1, "w": 24, @@ -73,52 +37,88 @@ "y": 0 }, "id": 26, + "panels": [], "title": "Aleo Network", "type": "row" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "adgg6tp3e19fkc" }, "fieldConfig": { "defaults": { "color": { - "mode": "palette-classic" + "mode": "thresholds" }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 6, + "x": 0, + "y": 1 + }, + "id": 49, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "10.4.1", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "adgg6tp3e19fkc" + }, + "disableTextWrap": false, + "editorMode": "builder", + "expr": "snarkos_blocks_height_total", + "fullMetaSearch": false, + "includeNullMetadata": true, + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "A", + "useBackend": false + } + ], + "title": "Block Height", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "adgg6tp3e19fkc" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" }, - "displayName": "Connected Peers", "mappings": [], "thresholds": { "mode": "absolute", @@ -129,7 +129,7 @@ }, { "color": "red", - "value": 80 + "value": 60 } ] } @@ -138,43 +138,59 @@ }, "gridPos": { "h": 8, - "w": 12, - "x": 0, + "w": 6, + "x": 6, "y": 1 }, - "id": 27, + "id": 48, "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false }, - "tooltip": { - "mode": "single", - "sort": "none" - } + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true }, + "pluginVersion": "10.4.1", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "adgg6tp3e19fkc" }, "editorMode": "code", - "expr": "snarkos_router_connected_total", + "expr": "avg(\n 1 / rate(snarkos_blocks_height_total{}[1m])\n) < +inf", + "instant": false, "legendFormat": "__auto", "range": true, "refId": "A" } ], - "title": "Connected Peers", - "type": "timeseries" + "title": "Average Seconds/Block over last minute", + "transformations": [ + { + "id": "reduce", + "options": { + "reducers": [ + "mean" + ] + } + } + ], + "type": "stat" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "adgg6tp3e19fkc" }, "fieldConfig": { "defaults": { @@ -213,7 +229,6 @@ "mode": "off" } }, - "displayName": "Candidate Peers", "mappings": [], "thresholds": { "mode": "absolute", @@ -221,10 +236,6 @@ { "color": "green", "value": null - }, - { - "color": "red", - "value": 80 } ] } @@ -237,7 +248,7 @@ "x": 12, "y": 1 }, - "id": 28, + "id": 23, "options": { "legend": { "calcs": [], @@ -250,26 +261,27 @@ "sort": "none" } }, + "pluginVersion": "10.4.1", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "adgg6tp3e19fkc" }, "editorMode": "code", - "expr": "snarkos_router_candidate_total", + "expr": "snarkos_blocks_height_total", "legendFormat": "__auto", "range": true, "refId": "A" } ], - "title": "Candidate Peers", + "title": "Block Height", "type": "timeseries" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "adgg6tp3e19fkc" }, "fieldConfig": { "defaults": { @@ -349,7 +361,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "adgg6tp3e19fkc" }, "editorMode": "code", "expr": "snarkos_router_restricted_total", @@ -364,13 +376,46 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "adgg6tp3e19fkc" }, "fieldConfig": { "defaults": { "color": { - "mode": "thresholds" + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } }, + "displayName": "Total Transactions", "mappings": [], "thresholds": { "mode": "absolute", @@ -390,43 +435,44 @@ "x": 12, "y": 9 }, - "id": 23, + "id": 36, "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true }, - "textMode": "auto", - "wideLayout": true + "tooltip": { + "mode": "single", + "sort": "none" + } }, - "pluginVersion": "10.2.3", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "adgg6tp3e19fkc" }, - "editorMode": "code", - "expr": "snarkos_blocks_height_total", + "disableTextWrap": false, + "editorMode": "builder", + "expr": "snarkos_blocks_transactions_total", + "fullMetaSearch": false, + "includeNullMetadata": true, + "instant": false, "legendFormat": "__auto", "range": true, - "refId": "A" + "refId": "A", + "useBackend": false } ], - "title": "Block Height", - "type": "stat" + "title": "Total Transactions", + "type": "timeseries" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "adgg6tp3e19fkc" }, "fieldConfig": { "defaults": { @@ -502,7 +548,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "adgg6tp3e19fkc" }, "editorMode": "builder", "expr": "sum(rate(snarkos_blocks_transactions_total[5m]))", @@ -517,7 +563,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "adgg6tp3e19fkc" }, "fieldConfig": { "defaults": { @@ -556,7 +602,7 @@ "mode": "off" } }, - "displayName": "Total Transactions", + "displayName": "Total Transmissions", "mappings": [], "thresholds": { "mode": "absolute", @@ -576,7 +622,7 @@ "x": 12, "y": 17 }, - "id": 36, + "id": 42, "options": { "legend": { "calcs": [], @@ -593,11 +639,11 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "adgg6tp3e19fkc" }, "disableTextWrap": false, "editorMode": "builder", - "expr": "snarkos_blocks_transactions_total", + "expr": "snarkos_blocks_solutions_total", "fullMetaSearch": false, "includeNullMetadata": true, "instant": false, @@ -607,13 +653,13 @@ "useBackend": false } ], - "title": "Total Transactions", + "title": "Total Solutions", "type": "timeseries" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "adgg6tp3e19fkc" }, "fieldConfig": { "defaults": { @@ -652,7 +698,7 @@ "mode": "off" } }, - "displayName": "Total Solutions", + "displayName": "Total Stake", "mappings": [], "thresholds": { "mode": "absolute", @@ -660,6 +706,10 @@ { "color": "green", "value": null + }, + { + "color": "red", + "value": 80 } ] } @@ -672,7 +722,7 @@ "x": 0, "y": 25 }, - "id": 41, + "id": 31, "options": { "legend": { "calcs": [], @@ -689,11 +739,11 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "adgg6tp3e19fkc" }, "disableTextWrap": false, "editorMode": "builder", - "expr": "snarkos_blocks_solutions_total", + "expr": "snarkvm_ledger_committee_total_stake", "fullMetaSearch": false, "includeNullMetadata": true, "instant": false, @@ -703,13 +753,13 @@ "useBackend": false } ], - "title": "Total Solutions", + "title": "Total Stake", "type": "timeseries" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "adgg6tp3e19fkc" }, "fieldConfig": { "defaults": { @@ -748,7 +798,6 @@ "mode": "off" } }, - "displayName": "Total Transmissions", "mappings": [], "thresholds": { "mode": "absolute", @@ -756,6 +805,10 @@ { "color": "green", "value": null + }, + { + "color": "red", + "value": 80 } ] } @@ -768,7 +821,7 @@ "x": 12, "y": 25 }, - "id": 42, + "id": 47, "options": { "legend": { "calcs": [], @@ -785,11 +838,11 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "adgg6tp3e19fkc" }, "disableTextWrap": false, "editorMode": "builder", - "expr": "snarkos_blocks_transmissions_total", + "expr": "snarkos_bft_connected_total", "fullMetaSearch": false, "includeNullMetadata": true, "instant": false, @@ -799,13 +852,13 @@ "useBackend": false } ], - "title": "Total Transmissions", + "title": "SnarkOS BFT Connected Total", "type": "timeseries" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "adgg6tp3e19fkc" }, "fieldConfig": { "defaults": { @@ -844,7 +897,7 @@ "mode": "off" } }, - "displayName": "Total Stake", + "displayName": "Connected Peers", "mappings": [], "thresholds": { "mode": "absolute", @@ -868,7 +921,7 @@ "x": 0, "y": 33 }, - "id": 31, + "id": 27, "options": { "legend": { "calcs": [], @@ -885,46 +938,61 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "adgg6tp3e19fkc" }, - "disableTextWrap": false, - "editorMode": "builder", - "expr": "snarkvm_ledger_committee_total_stake", - "fullMetaSearch": false, - "includeNullMetadata": true, - "instant": false, + "editorMode": "code", + "expr": "snarkos_router_connected_total", "legendFormat": "__auto", "range": true, - "refId": "A", - "useBackend": false + "refId": "A" } ], - "title": "Total Stake", + "title": "Connected Peers", "type": "timeseries" }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 41 - }, - "id": 18, - "panels": [], - "title": "BFT", - "type": "row" - }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "adgg6tp3e19fkc" }, "fieldConfig": { "defaults": { "color": { - "mode": "thresholds" + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } }, + "displayName": "Candidate Peers", "mappings": [], "thresholds": { "mode": "absolute", @@ -932,6 +1000,10 @@ { "color": "green", "value": null + }, + { + "color": "red", + "value": 80 } ] } @@ -940,51 +1012,56 @@ }, "gridPos": { "h": 8, - "w": 6, - "x": 0, - "y": 42 + "w": 12, + "x": 12, + "y": 33 }, - "id": 16, + "id": 28, "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true }, - "textMode": "auto", - "wideLayout": true + "tooltip": { + "mode": "single", + "sort": "none" + } }, - "pluginVersion": "10.2.3", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "adgg6tp3e19fkc" }, - "disableTextWrap": false, - "editorMode": "builder", - "expr": "snarkos_bft_primary_proposal_round", - "fullMetaSearch": false, - "includeNullMetadata": true, + "editorMode": "code", + "expr": "snarkos_router_candidate_total", "legendFormat": "__auto", "range": true, - "refId": "A", - "useBackend": false + "refId": "A" } ], - "title": "Current Round", - "type": "stat" + "title": "Candidate Peers", + "type": "timeseries" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 41 + }, + "id": 18, + "panels": [], + "title": "BFT", + "type": "row" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "adgg6tp3e19fkc" }, "fieldConfig": { "defaults": { @@ -1006,11 +1083,11 @@ }, "gridPos": { "h": 8, - "w": 6, - "x": 6, + "w": 8, + "x": 0, "y": 42 }, - "id": 25, + "id": 16, "options": { "colorMode": "value", "graphMode": "area", @@ -1023,30 +1100,35 @@ "fields": "", "values": false }, + "showPercentChange": false, "textMode": "auto", "wideLayout": true }, - "pluginVersion": "10.2.3", + "pluginVersion": "10.4.1", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "adgg6tp3e19fkc" }, - "editorMode": "code", - "expr": "snarkos_consensus_last_committed_round", + "disableTextWrap": false, + "editorMode": "builder", + "expr": "snarkos_bft_primary_proposal_round", + "fullMetaSearch": false, + "includeNullMetadata": true, "legendFormat": "__auto", "range": true, - "refId": "A" + "refId": "A", + "useBackend": false } ], - "title": "Last Committed Round", + "title": "Current Round", "type": "stat" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "adgg6tp3e19fkc" }, "fieldConfig": { "defaults": { @@ -1068,11 +1150,11 @@ }, "gridPos": { "h": 8, - "w": 6, - "x": 12, + "w": 8, + "x": 8, "y": 42 }, - "id": 12, + "id": 25, "options": { "colorMode": "value", "graphMode": "area", @@ -1085,30 +1167,31 @@ "fields": "", "values": false }, + "showPercentChange": false, "textMode": "auto", "wideLayout": true }, - "pluginVersion": "10.2.3", + "pluginVersion": "10.4.1", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "adgg6tp3e19fkc" }, - "editorMode": "builder", - "expr": "snarkos_consensus_committed_certificates_total", + "editorMode": "code", + "expr": "snarkos_consensus_last_committed_round", "legendFormat": "__auto", "range": true, "refId": "A" } ], - "title": "Committed Certificates", + "title": "Last Committed Round", "type": "stat" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "adgg6tp3e19fkc" }, "fieldConfig": { "defaults": { @@ -1130,8 +1213,8 @@ }, "gridPos": { "h": 8, - "w": 6, - "x": 18, + "w": 8, + "x": 16, "y": 42 }, "id": 24, @@ -1147,15 +1230,16 @@ "fields": "", "values": false }, + "showPercentChange": false, "textMode": "auto", "wideLayout": true }, - "pluginVersion": "10.2.3", + "pluginVersion": "10.4.1", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "adgg6tp3e19fkc" }, "editorMode": "code", "expr": "snarkos_bft_leaders_elected_total", @@ -1170,7 +1254,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "adgg6tp3e19fkc" }, "fieldConfig": { "defaults": { @@ -1192,371 +1276,37 @@ }, "gridPos": { "h": 8, - "w": 6, - "x": 0, + "w": 7, + "x": 4, "y": 50 }, "id": 40, "options": { "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "10.2.3", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "disableTextWrap": false, - "editorMode": "builder", - "expr": "snarkos_bft_primary_certified_batches", - "fullMetaSearch": false, - "includeNullMetadata": true, - "instant": false, - "legendFormat": "__auto", - "range": true, - "refId": "A", - "useBackend": false - } - ], - "title": "Certified Batches", - "type": "stat" - }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 58 - }, - "id": 10, - "panels": [], - "title": "Consensus", - "type": "row" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "displayName": "Average Certificate Commit Latency", - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 9, - "x": 0, - "y": 59 - }, - "id": 8, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "9.4.1", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "disableTextWrap": false, - "editorMode": "builder", - "exemplar": false, - "expr": "avg(snarkos_consensus_certificate_commit_latency_secs)", - "format": "time_series", - "fullMetaSearch": false, - "includeNullMetadata": true, - "instant": false, - "legendFormat": "__auto", - "range": true, - "refId": "A", - "useBackend": false - } - ], - "title": "Certificate Commit Latency", - "transformations": [ - { - "id": "filterByValue", - "options": { - "filters": [ - { - "config": { - "id": "equal", - "options": { - "value": "" - } - }, - "fieldName": "certificate_round" - } - ], - "match": "all", - "type": "exclude" - } - } - ], - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "displayName": "Average round latency", - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 15 - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 9, - "x": 9, - "y": 59 - }, - "id": 14, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "disableTextWrap": false, - "editorMode": "builder", - "exemplar": false, - "expr": "avg(snarkos_bft_commit_rounds_latency_secs)", - "format": "time_series", - "fullMetaSearch": false, - "includeNullMetadata": true, - "legendFormat": "__auto", - "range": true, - "refId": "A", - "useBackend": false - } - ], - "title": "Commit Rounds Latency", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "${DS_PROMETHEUS}" - }, - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "displayName": "Total Transactions", - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 9, - "x": 0, - "y": 67 - }, - "id": 43, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false }, - "tooltip": { - "mode": "single", - "sort": "none" - } + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true }, + "pluginVersion": "10.4.1", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "adgg6tp3e19fkc" }, "disableTextWrap": false, "editorMode": "builder", - "expr": "snarkos_consensus_unconfirmed_transactions_total", + "expr": "snarkos_bft_primary_certified_batches", "fullMetaSearch": false, "includeNullMetadata": true, "instant": false, @@ -1566,52 +1316,19 @@ "useBackend": false } ], - "title": "Total Unconfirmed Transactions", - "type": "timeseries" + "title": "Certified Batches", + "type": "stat" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "adgg6tp3e19fkc" }, "fieldConfig": { "defaults": { "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } + "mode": "thresholds" }, - "displayName": "Total Solutions", "mappings": [], "thresholds": { "mode": "absolute", @@ -1627,48 +1344,61 @@ }, "gridPos": { "h": 8, - "w": 9, - "x": 9, - "y": 67 + "w": 7, + "x": 11, + "y": 50 }, - "id": 44, + "id": 12, "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false }, - "tooltip": { - "mode": "single", - "sort": "none" - } + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true }, + "pluginVersion": "10.4.1", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "adgg6tp3e19fkc" }, - "disableTextWrap": false, "editorMode": "builder", - "expr": "snarkos_consensus_unconfirmed_solutions_total", - "fullMetaSearch": false, - "includeNullMetadata": true, - "instant": false, + "expr": "snarkos_consensus_committed_certificates_total", "legendFormat": "__auto", "range": true, - "refId": "A", - "useBackend": false + "refId": "A" } ], - "title": "Total Unconfirmed Solutions", - "type": "timeseries" + "title": "Committed Certificates", + "type": "stat" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 58 + }, + "id": 10, + "panels": [], + "title": "Consensus", + "type": "row" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "adgg6tp3e19fkc" }, "fieldConfig": { "defaults": { @@ -1707,7 +1437,7 @@ "mode": "off" } }, - "displayName": "Total Transmissions", + "displayName": "Average Certificate Commit Latency", "mappings": [], "thresholds": { "mode": "absolute", @@ -1715,19 +1445,24 @@ { "color": "green", "value": null + }, + { + "color": "red", + "value": 80 } ] - } + }, + "unit": "s" }, "overrides": [] }, "gridPos": { "h": 8, - "w": 9, + "w": 12, "x": 0, - "y": 75 + "y": 59 }, - "id": 45, + "id": 8, "options": { "legend": { "calcs": [], @@ -1740,15 +1475,18 @@ "sort": "none" } }, + "pluginVersion": "9.4.1", "targets": [ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "adgg6tp3e19fkc" }, "disableTextWrap": false, "editorMode": "builder", - "expr": "snarkos_consensus_unconfirmed_transmissions_total", + "exemplar": false, + "expr": "avg(snarkos_consensus_certificate_commit_latency_secs)", + "format": "time_series", "fullMetaSearch": false, "includeNullMetadata": true, "instant": false, @@ -1758,13 +1496,33 @@ "useBackend": false } ], - "title": "Total Unconfirmed Transmissions", + "title": "Certificate Commit Latency", + "transformations": [ + { + "id": "filterByValue", + "options": { + "filters": [ + { + "config": { + "id": "equal", + "options": { + "value": "" + } + }, + "fieldName": "certificate_round" + } + ], + "match": "all", + "type": "exclude" + } + } + ], "type": "timeseries" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "adgg6tp3e19fkc" }, "fieldConfig": { "defaults": { @@ -1803,7 +1561,7 @@ "mode": "off" } }, - "displayName": "Average Block Latency", + "displayName": "Average round latency", "mappings": [], "thresholds": { "mode": "absolute", @@ -1814,20 +1572,21 @@ }, { "color": "red", - "value": 80 + "value": 15 } ] - } + }, + "unit": "s" }, "overrides": [] }, "gridPos": { "h": 8, - "w": 9, - "x": 9, - "y": 75 + "w": 12, + "x": 12, + "y": 59 }, - "id": 38, + "id": 14, "options": { "legend": { "calcs": [], @@ -1844,40 +1603,28 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "adgg6tp3e19fkc" }, "disableTextWrap": false, "editorMode": "builder", - "expr": "avg(snarkos_consensus_block_latency_secs)", + "exemplar": false, + "expr": "avg(snarkos_bft_commit_rounds_latency_secs)", + "format": "time_series", "fullMetaSearch": false, "includeNullMetadata": true, - "instant": false, "legendFormat": "__auto", "range": true, "refId": "A", "useBackend": false } ], - "title": "Block Latency", + "title": "Commit Rounds Latency", "type": "timeseries" }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 83 - }, - "id": 4, - "panels": [], - "title": "Network", - "type": "row" - }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "adgg6tp3e19fkc" }, "fieldConfig": { "defaults": { @@ -1916,7 +1663,7 @@ "mode": "off" } }, - "displayName": "Queue Depth", + "displayName": "Total Transactions", "mappings": [], "thresholds": { "mode": "absolute", @@ -1924,10 +1671,6 @@ { "color": "green", "value": null - }, - { - "color": "red", - "value": 80 } ] } @@ -1937,10 +1680,10 @@ "gridPos": { "h": 8, "w": 12, - "x": 6, - "y": 84 + "x": 0, + "y": 67 }, - "id": 37, + "id": 43, "options": { "legend": { "calcs": [], @@ -1957,11 +1700,11 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "adgg6tp3e19fkc" }, "disableTextWrap": false, "editorMode": "builder", - "expr": "snarkos_tcp_tasks_total", + "expr": "snarkos_consensus_unconfirmed_transactions_total", "fullMetaSearch": false, "includeNullMetadata": true, "instant": false, @@ -1971,13 +1714,13 @@ "useBackend": false } ], - "title": "TCP Queue Depth", + "title": "Total Unconfirmed Transactions", "type": "timeseries" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "adgg6tp3e19fkc" }, "fieldConfig": { "defaults": { @@ -2016,7 +1759,7 @@ "mode": "off" } }, - "displayName": "average encrypt time", + "displayName": "Total Solutions", "mappings": [], "thresholds": { "mode": "absolute", @@ -2024,24 +1767,19 @@ { "color": "green", "value": null - }, - { - "color": "red", - "value": 80 } ] - }, - "unit": "µs" + } }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, - "x": 0, - "y": 92 + "x": 12, + "y": 67 }, - "id": 32, + "id": 44, "options": { "legend": { "calcs": [], @@ -2058,11 +1796,11 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "adgg6tp3e19fkc" }, "disableTextWrap": false, "editorMode": "builder", - "expr": "avg(snarkos_tcp_noise_codec_encryption_micros)", + "expr": "snarkos_consensus_unconfirmed_solutions_total", "fullMetaSearch": false, "includeNullMetadata": true, "instant": false, @@ -2072,13 +1810,13 @@ "useBackend": false } ], - "title": "Encryption Time", + "title": "Total Unconfirmed Solutions", "type": "timeseries" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "adgg6tp3e19fkc" }, "fieldConfig": { "defaults": { @@ -2117,7 +1855,7 @@ "mode": "off" } }, - "displayName": "average decrypt time", + "displayName": "Total Transmissions", "mappings": [], "thresholds": { "mode": "absolute", @@ -2125,24 +1863,19 @@ { "color": "green", "value": null - }, - { - "color": "red", - "value": 80 } ] - }, - "unit": "µs" + } }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, - "x": 12, - "y": 92 + "x": 0, + "y": 75 }, - "id": 33, + "id": 45, "options": { "legend": { "calcs": [], @@ -2159,30 +1892,27 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "adgg6tp3e19fkc" }, "disableTextWrap": false, "editorMode": "builder", - "exemplar": false, - "expr": "avg(snarkos_tcp_noise_codec_decryption_micros)", - "format": "time_series", + "expr": "snarkos_consensus_unconfirmed_transmissions_total", "fullMetaSearch": false, "includeNullMetadata": true, "instant": false, - "interval": "", "legendFormat": "__auto", "range": true, "refId": "A", "useBackend": false } ], - "title": "Decryption Time", + "title": "Total Unconfirmed Transmissions", "type": "timeseries" }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "adgg6tp3e19fkc" }, "fieldConfig": { "defaults": { @@ -2221,7 +1951,7 @@ "mode": "off" } }, - "displayName": "Average Size", + "displayName": "Average Block Latency", "mappings": [], "thresholds": { "mode": "absolute", @@ -2235,18 +1965,17 @@ "value": 80 } ] - }, - "unit": "decbytes" + } }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, - "x": 0, - "y": 100 + "x": 12, + "y": 75 }, - "id": 34, + "id": 38, "options": { "legend": { "calcs": [], @@ -2263,11 +1992,11 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "adgg6tp3e19fkc" }, "disableTextWrap": false, "editorMode": "builder", - "expr": "avg(snarkos_tcp_noise_codec_encryption_size)", + "expr": "avg(snarkos_consensus_block_latency_secs)", "fullMetaSearch": false, "includeNullMetadata": true, "instant": false, @@ -2277,13 +2006,26 @@ "useBackend": false } ], - "title": "Encryption Size", + "title": "Block Latency", "type": "timeseries" }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 83 + }, + "id": 4, + "panels": [], + "title": "Network", + "type": "row" + }, { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "adgg6tp3e19fkc" }, "fieldConfig": { "defaults": { @@ -2322,7 +2064,7 @@ "mode": "off" } }, - "displayName": "Average Size", + "displayName": "Queue Depth", "mappings": [], "thresholds": { "mode": "absolute", @@ -2336,18 +2078,17 @@ "value": 80 } ] - }, - "unit": "decbytes" + } }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, - "x": 12, - "y": 100 + "x": 6, + "y": 84 }, - "id": 35, + "id": 37, "options": { "legend": { "calcs": [], @@ -2364,11 +2105,11 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_PROMETHEUS}" + "uid": "adgg6tp3e19fkc" }, "disableTextWrap": false, "editorMode": "builder", - "expr": "avg(snarkos_tcp_noise_codec_decryption_size)", + "expr": "snarkos_tcp_tasks_total", "fullMetaSearch": false, "includeNullMetadata": true, "instant": false, @@ -2378,7 +2119,7 @@ "useBackend": false } ], - "title": "Decryption Size", + "title": "TCP Queue Depth", "type": "timeseries" } ], @@ -2393,8 +2134,8 @@ "list": [] }, "time": { - "from": "now-5m", - "to": "now" + "from": "now-30m", + "to": "now-18m" }, "timepicker": { "refresh_intervals": [ @@ -2412,7 +2153,6 @@ }, "timezone": "", "title": "snarkOS", - "uid": "ahTJm4-4k", - "version": 1, + "version": 3, "weekStart": "" } \ No newline at end of file From 7b910e82267d52223cc0a219a7a78d5189902f8d Mon Sep 17 00:00:00 2001 From: miazn Date: Fri, 22 Mar 2024 13:53:31 -0400 Subject: [PATCH 2/4] generalize the prometheus datasource id --- node/metrics/snarkOS-grafana.json | 92 +++++++++++++++---------------- 1 file changed, 46 insertions(+), 46 deletions(-) diff --git a/node/metrics/snarkOS-grafana.json b/node/metrics/snarkOS-grafana.json index d86a954c8d..2da0e15189 100644 --- a/node/metrics/snarkOS-grafana.json +++ b/node/metrics/snarkOS-grafana.json @@ -44,7 +44,7 @@ { "datasource": { "type": "prometheus", - "uid": "adgg6tp3e19fkc" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -92,7 +92,7 @@ { "datasource": { "type": "prometheus", - "uid": "adgg6tp3e19fkc" + "uid": "${DS_PROMETHEUS}" }, "disableTextWrap": false, "editorMode": "builder", @@ -112,7 +112,7 @@ { "datasource": { "type": "prometheus", - "uid": "adgg6tp3e19fkc" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -164,7 +164,7 @@ { "datasource": { "type": "prometheus", - "uid": "adgg6tp3e19fkc" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "avg(\n 1 / rate(snarkos_blocks_height_total{}[1m])\n) < +inf", @@ -190,7 +190,7 @@ { "datasource": { "type": "prometheus", - "uid": "adgg6tp3e19fkc" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -266,7 +266,7 @@ { "datasource": { "type": "prometheus", - "uid": "adgg6tp3e19fkc" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "snarkos_blocks_height_total", @@ -281,7 +281,7 @@ { "datasource": { "type": "prometheus", - "uid": "adgg6tp3e19fkc" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -361,7 +361,7 @@ { "datasource": { "type": "prometheus", - "uid": "adgg6tp3e19fkc" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "snarkos_router_restricted_total", @@ -376,7 +376,7 @@ { "datasource": { "type": "prometheus", - "uid": "adgg6tp3e19fkc" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -452,7 +452,7 @@ { "datasource": { "type": "prometheus", - "uid": "adgg6tp3e19fkc" + "uid": "${DS_PROMETHEUS}" }, "disableTextWrap": false, "editorMode": "builder", @@ -472,7 +472,7 @@ { "datasource": { "type": "prometheus", - "uid": "adgg6tp3e19fkc" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -548,7 +548,7 @@ { "datasource": { "type": "prometheus", - "uid": "adgg6tp3e19fkc" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "builder", "expr": "sum(rate(snarkos_blocks_transactions_total[5m]))", @@ -563,7 +563,7 @@ { "datasource": { "type": "prometheus", - "uid": "adgg6tp3e19fkc" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -639,7 +639,7 @@ { "datasource": { "type": "prometheus", - "uid": "adgg6tp3e19fkc" + "uid": "${DS_PROMETHEUS}" }, "disableTextWrap": false, "editorMode": "builder", @@ -659,7 +659,7 @@ { "datasource": { "type": "prometheus", - "uid": "adgg6tp3e19fkc" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -739,7 +739,7 @@ { "datasource": { "type": "prometheus", - "uid": "adgg6tp3e19fkc" + "uid": "${DS_PROMETHEUS}" }, "disableTextWrap": false, "editorMode": "builder", @@ -759,7 +759,7 @@ { "datasource": { "type": "prometheus", - "uid": "adgg6tp3e19fkc" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -838,7 +838,7 @@ { "datasource": { "type": "prometheus", - "uid": "adgg6tp3e19fkc" + "uid": "${DS_PROMETHEUS}" }, "disableTextWrap": false, "editorMode": "builder", @@ -858,7 +858,7 @@ { "datasource": { "type": "prometheus", - "uid": "adgg6tp3e19fkc" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -938,7 +938,7 @@ { "datasource": { "type": "prometheus", - "uid": "adgg6tp3e19fkc" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "snarkos_router_connected_total", @@ -953,7 +953,7 @@ { "datasource": { "type": "prometheus", - "uid": "adgg6tp3e19fkc" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -1033,7 +1033,7 @@ { "datasource": { "type": "prometheus", - "uid": "adgg6tp3e19fkc" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "snarkos_router_candidate_total", @@ -1061,7 +1061,7 @@ { "datasource": { "type": "prometheus", - "uid": "adgg6tp3e19fkc" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -1109,7 +1109,7 @@ { "datasource": { "type": "prometheus", - "uid": "adgg6tp3e19fkc" + "uid": "${DS_PROMETHEUS}" }, "disableTextWrap": false, "editorMode": "builder", @@ -1128,7 +1128,7 @@ { "datasource": { "type": "prometheus", - "uid": "adgg6tp3e19fkc" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -1176,7 +1176,7 @@ { "datasource": { "type": "prometheus", - "uid": "adgg6tp3e19fkc" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "snarkos_consensus_last_committed_round", @@ -1191,7 +1191,7 @@ { "datasource": { "type": "prometheus", - "uid": "adgg6tp3e19fkc" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -1239,7 +1239,7 @@ { "datasource": { "type": "prometheus", - "uid": "adgg6tp3e19fkc" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "code", "expr": "snarkos_bft_leaders_elected_total", @@ -1254,7 +1254,7 @@ { "datasource": { "type": "prometheus", - "uid": "adgg6tp3e19fkc" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -1302,7 +1302,7 @@ { "datasource": { "type": "prometheus", - "uid": "adgg6tp3e19fkc" + "uid": "${DS_PROMETHEUS}" }, "disableTextWrap": false, "editorMode": "builder", @@ -1322,7 +1322,7 @@ { "datasource": { "type": "prometheus", - "uid": "adgg6tp3e19fkc" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -1370,7 +1370,7 @@ { "datasource": { "type": "prometheus", - "uid": "adgg6tp3e19fkc" + "uid": "${DS_PROMETHEUS}" }, "editorMode": "builder", "expr": "snarkos_consensus_committed_certificates_total", @@ -1398,7 +1398,7 @@ { "datasource": { "type": "prometheus", - "uid": "adgg6tp3e19fkc" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -1480,7 +1480,7 @@ { "datasource": { "type": "prometheus", - "uid": "adgg6tp3e19fkc" + "uid": "${DS_PROMETHEUS}" }, "disableTextWrap": false, "editorMode": "builder", @@ -1522,7 +1522,7 @@ { "datasource": { "type": "prometheus", - "uid": "adgg6tp3e19fkc" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -1603,7 +1603,7 @@ { "datasource": { "type": "prometheus", - "uid": "adgg6tp3e19fkc" + "uid": "${DS_PROMETHEUS}" }, "disableTextWrap": false, "editorMode": "builder", @@ -1624,7 +1624,7 @@ { "datasource": { "type": "prometheus", - "uid": "adgg6tp3e19fkc" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -1700,7 +1700,7 @@ { "datasource": { "type": "prometheus", - "uid": "adgg6tp3e19fkc" + "uid": "${DS_PROMETHEUS}" }, "disableTextWrap": false, "editorMode": "builder", @@ -1720,7 +1720,7 @@ { "datasource": { "type": "prometheus", - "uid": "adgg6tp3e19fkc" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -1796,7 +1796,7 @@ { "datasource": { "type": "prometheus", - "uid": "adgg6tp3e19fkc" + "uid": "${DS_PROMETHEUS}" }, "disableTextWrap": false, "editorMode": "builder", @@ -1816,7 +1816,7 @@ { "datasource": { "type": "prometheus", - "uid": "adgg6tp3e19fkc" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -1892,7 +1892,7 @@ { "datasource": { "type": "prometheus", - "uid": "adgg6tp3e19fkc" + "uid": "${DS_PROMETHEUS}" }, "disableTextWrap": false, "editorMode": "builder", @@ -1912,7 +1912,7 @@ { "datasource": { "type": "prometheus", - "uid": "adgg6tp3e19fkc" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -1992,7 +1992,7 @@ { "datasource": { "type": "prometheus", - "uid": "adgg6tp3e19fkc" + "uid": "${DS_PROMETHEUS}" }, "disableTextWrap": false, "editorMode": "builder", @@ -2025,7 +2025,7 @@ { "datasource": { "type": "prometheus", - "uid": "adgg6tp3e19fkc" + "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { @@ -2105,7 +2105,7 @@ { "datasource": { "type": "prometheus", - "uid": "adgg6tp3e19fkc" + "uid": "${DS_PROMETHEUS}" }, "disableTextWrap": false, "editorMode": "builder", From 6eede72197d4fea3242ee3a88ebeb0c65c1a08a1 Mon Sep 17 00:00:00 2001 From: miazn Date: Fri, 22 Mar 2024 13:54:14 -0400 Subject: [PATCH 3/4] default time --- node/metrics/snarkOS-grafana.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node/metrics/snarkOS-grafana.json b/node/metrics/snarkOS-grafana.json index 2da0e15189..485725ba39 100644 --- a/node/metrics/snarkOS-grafana.json +++ b/node/metrics/snarkOS-grafana.json @@ -2134,8 +2134,8 @@ "list": [] }, "time": { - "from": "now-30m", - "to": "now-18m" + "from": "now-5m", + "to": "now" }, "timepicker": { "refresh_intervals": [ From 28d04ab4e886209b484b4dde9ca6e2f57877ea84 Mon Sep 17 00:00:00 2001 From: miazn Date: Fri, 22 Mar 2024 14:03:01 -0400 Subject: [PATCH 4/4] keep default input --- node/metrics/snarkOS-grafana.json | 38 ++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/node/metrics/snarkOS-grafana.json b/node/metrics/snarkOS-grafana.json index 485725ba39..e837e590f7 100644 --- a/node/metrics/snarkOS-grafana.json +++ b/node/metrics/snarkOS-grafana.json @@ -1,4 +1,40 @@ -{ +{ "__inputs": [ + { + "name": "DS_PROMETHEUS", + "label": "prometheus", + "description": "", + "type": "datasource", + "pluginId": "prometheus", + "pluginName": "Prometheus" + } +], +"__elements": {}, +"__requires": [ + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "10.2.3" + }, + { + "type": "datasource", + "id": "prometheus", + "name": "Prometheus", + "version": "1.0.0" + }, + { + "type": "panel", + "id": "stat", + "name": "Stat", + "version": "" + }, + { + "type": "panel", + "id": "timeseries", + "name": "Time series", + "version": "" + } +], "annotations": { "list": [ {