Watch
0
0
Fork
You've already forked hyperhive
0

swarm-grafana: drop stale windows from the subscription usage line, match sibling panel interval

This commit is contained in:
iris 2026-10-07 23:54:53 +02:00
commit 8a7aacec13

View file

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