From 8a7aacec138f293e412f93c2f973e491e79cd289 Mon Sep 17 00:00:00 2001 From: iris Date: Wed, 7 Oct 2026 23:54:53 +0200 Subject: [PATCH] swarm-grafana: drop stale windows from the subscription usage line, match sibling panel interval --- nix/host-modules/swarm-grafana/dashboards/claude-usage.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nix/host-modules/swarm-grafana/dashboards/claude-usage.json b/nix/host-modules/swarm-grafana/dashboards/claude-usage.json index 57355056..2198f185 100644 --- a/nix/host-modules/swarm-grafana/dashboards/claude-usage.json +++ b/nix/host-modules/swarm-grafana/dashboards/claude-usage.json @@ -1002,6 +1002,7 @@ "type": "prometheus", "uid": "@datasourceUid@" }, + "interval": "10m", "gridPos": { "h": 8, "w": 24, @@ -1015,7 +1016,7 @@ "type": "prometheus", "uid": "@datasourceUid@" }, - "expr": "max({__name__=\"hyperhive.agent.claude_usage.percent\", hive=~\"$hive\", agent=~\"$agent\"})", + "expr": "max({__name__=\"hyperhive.agent.claude_usage.percent\", hive=~\"$hive\", agent=~\"$agent\"} unless on(agent, hive, window) ({__name__=\"hyperhive.agent.claude_usage.resets_at\", hive=~\"$hive\", agent=~\"$agent\"} < time()))", "legendFormat": "highest window" } ],