From 84e5a8013f5c29b0c31bbdec0e394d4020753cc5 Mon Sep 17 00:00:00 2001 From: arvidn Date: Fri, 23 Feb 2024 23:27:41 +0100 Subject: [PATCH] add panel to Blockchain state plotting the ratio of blocks that have been compacted --- dashboards/blockchain/blockchain-state.json | 101 +++++++++++++++++++- 1 file changed, 100 insertions(+), 1 deletion(-) diff --git a/dashboards/blockchain/blockchain-state.json b/dashboards/blockchain/blockchain-state.json index a05326a..6116cbf 100644 --- a/dashboards/blockchain/blockchain-state.json +++ b/dashboards/blockchain/blockchain-state.json @@ -1207,7 +1207,7 @@ "type": "prometheus", "uid": "PB06BBC9CA81C548D" }, - "description": "Shows number of signage points per 9.375 seconds, averaged over the past 5 minutes. Target value is 1. This is an indication of timelord performance.\n\nRead more about signage points and the 9.375 second target here: https://docs.chia.net/docs/03consensus/signage_points_and_infusion_points/", + "description": "In a block, there are a number of proofs. Each proof starts out in the \"uncompact\" form, which is quick to generate in real time, but takes longer to validate when syncing. \n\nThis shows the ratio of blocks that have been compacted.\n\nWant to help generate compact proofs? Read about how to run a bluebox timelord here: https://docs.chia.net/timelord-architecture/", "fieldConfig": { "defaults": { "color": { @@ -1259,6 +1259,7 @@ } ] }, + "unit": "percent", "unitScale": true }, "overrides": [] @@ -1269,6 +1270,104 @@ "x": 8, "y": 16 }, + "id": 47, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "PB06BBC9CA81C548D" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum without(cluster, application, component, pod, service, instance, namespace, job, instance_name, ref, container, group, endpoint, region) (\n topk(1, \n chia_blockchain_compact_blocks{network=\"$network\"} or\n chia_full_node_compact_blocks{application=\"chia-blockchain\",component=\"node\",network=\"$network\"} !=0\n )\n)/sum without(cluster, application, component, pod, service, instance, namespace, job, instance_name, ref, container, group, endpoint, region) (\n topk(1, \n chia_blockchain_height{network=\"$network\"} or\n chia_full_node_node_height{network=\"$network\"} !=0\n )\n)", + "interval": "", + "legendFormat": "Compact block ratio", + "range": true, + "refId": "A" + } + ], + "title": "Compact Blocks ratio", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "PB06BBC9CA81C548D" + }, + "description": "Shows number of signage points per 9.375 seconds, averaged over the past 5 minutes. Target value is 1. This is an indication of timelord performance.\n\nRead more about signage points and the 9.375 second target here: https://docs.chia.net/docs/03consensus/signage_points_and_infusion_points/", + "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" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unitScale": true + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 8, + "x": 8, + "y": 24 + }, "id": 42, "options": { "legend": {