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" } ],