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", "type": "prometheus",
"uid": "@datasourceUid@" "uid": "@datasourceUid@"
}, },
"interval": "10m",
"gridPos": { "gridPos": {
"h": 8, "h": 8,
"w": 24, "w": 24,
@ -1015,7 +1016,7 @@
"type": "prometheus", "type": "prometheus",
"uid": "@datasourceUid@" "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" "legendFormat": "highest window"
} }
], ],