From 833e414c6dd82714e4c0ecad63d2457c063bd153 Mon Sep 17 00:00:00 2001 From: Rob Thijssen Date: Fri, 4 Sep 2026 08:55:36 +0300 Subject: [PATCH] dashboard: scale the leaderboard's blocks bar to its own column; blank NaN timing cells After the multi-query join Grafana ranged the gauge cell across every numeric field in the frame, so 31 blocks was drawn against a 675 MH/s maximum. fieldMinMax on the blocks column restores the per-column scale. The gap and drift quantiles are filtered with expr == expr so authors without samples in the range show a blank cell instead of NaN. Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01CBgs2nSi4H2mdh8kD8vMX5 --- asset/grafana/quantus.json | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/asset/grafana/quantus.json b/asset/grafana/quantus.json index b7fc524..d4d6f9d 100644 --- a/asset/grafana/quantus.json +++ b/asset/grafana/quantus.json @@ -9,7 +9,7 @@ ], "timezone": "browser", "schemaVersion": 39, - "version": 14, + "version": 15, "refresh": "30s", "time": { "from": "now-6h", @@ -1749,7 +1749,7 @@ }, "editorMode": "code", "refId": "C", - "expr": "histogram_quantile(0.1, sum by (preimage, le) (increase(quantus_block_gap_seconds_bucket{preimage!~\"all|other\"}[$__range])))", + "expr": "(histogram_quantile(0.1, sum by (preimage, le) (increase(quantus_block_gap_seconds_bucket{preimage!~\"all|other\"}[$__range])))) == (histogram_quantile(0.1, sum by (preimage, le) (increase(quantus_block_gap_seconds_bucket{preimage!~\"all|other\"}[$__range]))))", "instant": true, "range": false, "format": "table" @@ -1761,7 +1761,7 @@ }, "editorMode": "code", "refId": "D", - "expr": "histogram_quantile(0.5, sum by (preimage, le) (increase(quantus_block_timestamp_drift_seconds_bucket{preimage!~\"all|other\"}[$__range])))", + "expr": "(histogram_quantile(0.5, sum by (preimage, le) (increase(quantus_block_timestamp_drift_seconds_bucket{preimage!~\"all|other\"}[$__range])))) == (histogram_quantile(0.5, sum by (preimage, le) (increase(quantus_block_timestamp_drift_seconds_bucket{preimage!~\"all|other\"}[$__range]))))", "instant": true, "range": false, "format": "table" @@ -1898,6 +1898,10 @@ { "id": "min", "value": 0 + }, + { + "id": "fieldMinMax", + "value": true } ] }, -- 2.52.0