From 8c4d0ad285c838f1246b4eb31623bcc042e58e1e Mon Sep 17 00:00:00 2001 From: Nicholas Pettas Date: Thu, 25 Jan 2024 12:53:29 -0800 Subject: [PATCH] update the grafana dashboard --- .../var/lib/grafana/dashboards/home.json | 165 +++++++++++++++--- 1 file changed, 137 insertions(+), 28 deletions(-) diff --git a/docker/networksimulator/grafana/var/lib/grafana/dashboards/home.json b/docker/networksimulator/grafana/var/lib/grafana/dashboards/home.json index ed1d3b524..515786e3c 100755 --- a/docker/networksimulator/grafana/var/lib/grafana/dashboards/home.json +++ b/docker/networksimulator/grafana/var/lib/grafana/dashboards/home.json @@ -263,7 +263,7 @@ }, "editorMode": "code", "expr": "rate(rpc_requests{instance=~\"$instance\"}[$__rate_interval])", - "legendFormat": "{{host}}", + "legendFormat": "{{instance}}", "range": true, "refId": "A" } @@ -496,7 +496,7 @@ "uid": "${datasource}" }, "editorMode": "code", - "expr": "sum(p2p_peers{instance=~\"$instance\"})", + "expr": "max(p2p_peers{instance=~\"$instance\"})", "format": "time_series", "interval": "", "intervalFactor": 1, @@ -510,7 +510,7 @@ "uid": "${datasource}" }, "editorMode": "code", - "expr": "sum(rate(p2p_dials{instance=~\"$instance\"}[$__rate_interval]))", + "expr": "max(rate(p2p_dials{instance=~\"$instance\"}[$__rate_interval]))", "format": "time_series", "interval": "", "intervalFactor": 1, @@ -524,7 +524,7 @@ "uid": "${datasource}" }, "editorMode": "code", - "expr": "sum(rate(p2p_serves{instance=~\"$instance\"}[$__rate_interval]))", + "expr": "max(rate(p2p_serves{instance=~\"$instance\"}[$__rate_interval]))", "format": "time_series", "interval": "", "intervalFactor": 1, @@ -589,7 +589,7 @@ "overrides": [] }, "gridPos": { - "h": 11, + "h": 5, "w": 4, "x": 0, "y": 16 @@ -623,7 +623,7 @@ }, "editorMode": "code", "exemplar": false, - "expr": "chain_head_block{instance=~\"$instance\"}", + "expr": "max(chain_head_block{instance=~\"$instance\"})", "format": "time_series", "instant": true, "interval": "", @@ -672,7 +672,7 @@ "overrides": [] }, "gridPos": { - "h": 11, + "h": 5, "w": 4, "x": 4, "y": 16 @@ -706,7 +706,7 @@ }, "editorMode": "code", "exemplar": false, - "expr": "chain_head_receipt{instance=~\"$instance\"}", + "expr": "max(chain_head_receipt{instance=~\"$instance\"})", "format": "time_series", "instant": true, "interval": "", @@ -755,7 +755,7 @@ "overrides": [] }, "gridPos": { - "h": 11, + "h": 5, "w": 4, "x": 8, "y": 16 @@ -789,7 +789,7 @@ }, "editorMode": "code", "exemplar": false, - "expr": "chain_head_block{instance=~\"$instance\"}", + "expr": "max(chain_head_block{instance=~\"$instance\"})", "format": "time_series", "instant": true, "interval": "", @@ -838,7 +838,7 @@ "overrides": [] }, "gridPos": { - "h": 11, + "h": 5, "w": 4, "x": 12, "y": 16 @@ -866,11 +866,17 @@ "pluginVersion": "10.3.1", "targets": [ { - "expr": "txpool_pending{instance=~\"$instance\"}", + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "editorMode": "code", + "expr": "max(txpool_pending{instance=~\"$instance\"})", "format": "time_series", "interval": "", "intervalFactor": 1, "legendFormat": "{{ instance }}", + "range": true, "refId": "A" } ], @@ -913,7 +919,7 @@ "overrides": [] }, "gridPos": { - "h": 11, + "h": 5, "w": 4, "x": 16, "y": 16 @@ -947,7 +953,7 @@ }, "editorMode": "code", "exemplar": false, - "expr": "txpool_queued{instance=~\"$instance\"}", + "expr": "max(txpool_queued{instance=~\"$instance\"})", "format": "time_series", "instant": true, "interval": "", @@ -996,7 +1002,7 @@ "overrides": [] }, "gridPos": { - "h": 11, + "h": 5, "w": 4, "x": 20, "y": 16 @@ -1030,7 +1036,7 @@ }, "editorMode": "code", "exemplar": false, - "expr": "txpool_local{instance=~\"$instance\"}", + "expr": "max(txpool_local{instance=~\"$instance\"})", "format": "time_series", "instant": true, "interval": "", @@ -1106,9 +1112,9 @@ }, "gridPos": { "h": 6, - "w": 12, + "w": 8, "x": 0, - "y": 27 + "y": 21 }, "id": 110, "links": [], @@ -1235,9 +1241,9 @@ }, "gridPos": { "h": 6, - "w": 12, - "x": 12, - "y": 27 + "w": 8, + "x": 8, + "y": 21 }, "id": 116, "links": [], @@ -1301,6 +1307,107 @@ "title": "Transaction pool", "type": "timeseries" }, + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "dtdurationms", + "unitScale": true + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 8, + "x": 16, + "y": 21 + }, + "id": 127, + "links": [], + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "8.4.7", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "editorMode": "code", + "expr": "avg(chain_block_age / 1000000)", + "format": "time_series", + "interval": "", + "intervalFactor": 1, + "legendFormat": "age", + "range": true, + "refId": "A" + } + ], + "title": "Block Age", + "type": "timeseries" + }, { "datasource": { "type": "prometheus", @@ -1366,7 +1473,7 @@ "h": 9, "w": 24, "x": 0, - "y": 33 + "y": 27 }, "id": 112, "links": [], @@ -1613,7 +1720,7 @@ "h": 9, "w": 24, "x": 0, - "y": 42 + "y": 36 }, "id": 117, "links": [], @@ -1809,7 +1916,7 @@ "h": 1, "w": 24, "x": 0, - "y": 51 + "y": 45 }, "id": 37, "panels": [], @@ -1863,7 +1970,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "red", @@ -1880,7 +1988,7 @@ "h": 6, "w": 12, "x": 0, - "y": 52 + "y": 46 }, "id": 120, "links": [], @@ -1979,7 +2087,8 @@ "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null }, { "color": "red", @@ -1996,7 +2105,7 @@ "h": 6, "w": 12, "x": 12, - "y": 52 + "y": 46 }, "id": 56, "links": [],