From 417d77c045999937453b454d266cafbdb195ef2c Mon Sep 17 00:00:00 2001 From: "Ciro S. Costa" Date: Tue, 3 Aug 2021 18:45:34 -0400 Subject: [PATCH] grafana: update metrics (fix unit, add sizes) Signed-off-by: Ciro S. Costa --- examples/grafana/dashboards/monero.json | 176 +++++++++++++++++++++++- 1 file changed, 173 insertions(+), 3 deletions(-) diff --git a/examples/grafana/dashboards/monero.json b/examples/grafana/dashboards/monero.json index a44d961..9ea24af 100644 --- a/examples/grafana/dashboards/monero.json +++ b/examples/grafana/dashboards/monero.json @@ -17,7 +17,7 @@ "gnetId": null, "graphTooltip": 0, "id": 1, - "iteration": 1628024752177, + "iteration": 1628030532187, "links": [], "panels": [ { @@ -352,14 +352,14 @@ "targets": [ { "exemplar": true, - "expr": "monero_info_block_size_limit", + "expr": "monero_info_block_size_limit_bytes", "interval": "", "legendFormat": "limit", "refId": "A" }, { "exemplar": true, - "expr": "monero_info_block_size_median", + "expr": "monero_info_block_size_median_bytes", "hide": false, "interval": "", "legendFormat": "median", @@ -539,6 +539,176 @@ "title": "Alternative blocks", "transparent": true, "type": "timeseries" + }, + { + "datasource": null, + "description": "Amount of free space in the partition where the Monero database is located at.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": -1, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "stepBefore", + "lineWidth": 1, + "pointSize": 6, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 3, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "decbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 8, + "x": 8, + "y": 10 + }, + "id": 74, + "options": { + "legend": { + "calcs": [], + "displayMode": "hidden", + "placement": "bottom" + }, + "tooltip": { + "mode": "multi" + } + }, + "targets": [ + { + "exemplar": true, + "expr": "monero_info_free_space_bytes", + "interval": "", + "legendFormat": "free space", + "refId": "A" + } + ], + "title": "Free space", + "transparent": true, + "type": "timeseries" + }, + { + "datasource": null, + "description": "Size of Monero's database on disk.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": -1, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "stepBefore", + "lineWidth": 1, + "pointSize": 6, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 3, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "decbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 8, + "x": 16, + "y": 10 + }, + "id": 75, + "options": { + "legend": { + "calcs": [], + "displayMode": "hidden", + "placement": "bottom" + }, + "tooltip": { + "mode": "multi" + } + }, + "targets": [ + { + "exemplar": true, + "expr": "monero_info_database_size_bytes", + "interval": "", + "legendFormat": "size", + "refId": "A" + } + ], + "title": "Database Size", + "transparent": true, + "type": "timeseries" } ], "title": "Overall",