From 4ebf8fe2aaff9f1eac7323f204e156ac3077d887 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C4=81ris=20Pop=C4=93ns?= Date: Sun, 4 Oct 2026 20:25:19 +0300 Subject: [PATCH] chore(dashboard): plot lowest and highest rate-limit budget instead of one line per window A line per window gives a new series every hour (its reset time is the label), so a 24h view showed ~48 short segments. Two stable lines across whatever windows exist read better; per-window detail stays in the metric. --- dashboards/github-actions-runner-exporter.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/dashboards/github-actions-runner-exporter.json b/dashboards/github-actions-runner-exporter.json index 234571e..d7466e5 100644 --- a/dashboards/github-actions-runner-exporter.json +++ b/dashboards/github-actions-runner-exporter.json @@ -8,7 +8,7 @@ "prometheus" ], "schemaVersion": 39, - "version": 3, + "version": 4, "editable": true, "time": { "from": "now-24h", @@ -951,21 +951,21 @@ }, "targets": [ { - "expr": "max(github_rate_limit_remaining)", - "legendFormat": "remaining (scarcest window)", + "expr": "min(github_rate_limit_window_remaining)", + "legendFormat": "lowest budget", "range": true, "instant": false, "refId": "A" }, { - "expr": "max by (reset) (github_rate_limit_window_remaining)", - "legendFormat": "window resetting {{reset}}", + "expr": "max(github_rate_limit_window_remaining)", + "legendFormat": "highest budget", "range": true, "instant": false, "refId": "B" } ], - "description": "remaining: the scarcest core window, which is what runs out first. GitHub counts per region, so a token can have several windows at once; each shows as its own line until it resets." + "description": "GitHub counts a token per region, so it can have several API budgets (windows) at once. Lowest is the one that runs out first, the same value as github_rate_limit_remaining; highest shows how unevenly usage is split. With one budget the lines overlap. Per-budget detail: github_rate_limit_window_remaining." }, { "id": 18,