Watch
0
0
Fork
You've already forked hyperhive
0

dashboards: filter agents by agent and hosts by host.name, drop the hive variable

This commit is contained in:
atlas 2026-11-22 23:46:43 +01:00 • committed by mara
commit 7796f53874

View file

@ -14,25 +14,6 @@
"version": 1,
"templating": {
"list": [
{
"name": "hive",
"label": "Hive",
"type": "query",
"datasource": {
"type": "prometheus",
"uid": "@datasourceUid@"
},
"query": "label_values({__name__=\"hyperhive.agent.closure_pullable\"}, hive)",
"refresh": 2,
"includeAll": true,
"allValue": ".*",
"multi": true,
"current": {
"text": "All",
"value": "$__all"
},
"sort": 1
},
{
"name": "agent",
"label": "Agent",
@ -41,7 +22,7 @@
"type": "prometheus",
"uid": "@datasourceUid@"
},
"query": "label_values({__name__=\"hyperhive.agent.closure_pullable\", hive=~\"$hive\"}, agent)",
"query": "label_values({__name__=\"hyperhive.agent.closure_pullable\"}, agent)",
"refresh": 2,
"includeAll": true,
"allValue": ".*",
@ -90,7 +71,7 @@
"type": "prometheus",
"uid": "@datasourceUid@"
},
"expr": "sum(max by (hive, agent) (last_over_time({__name__=\"hyperhive.agent.closure_pullable\", hive=~\"$hive\", agent=~\"$agent\"}[3m]))) or vector(0)",
"expr": "sum(max by (agent) (last_over_time({__name__=\"hyperhive.agent.closure_pullable\", agent=~\"$agent\"}[3m]))) or vector(0)",
"instant": true,
"legendFormat": "pullable"
}
@ -141,7 +122,7 @@
"type": "prometheus",
"uid": "@datasourceUid@"
},
"expr": "count(max by (hive, agent) (last_over_time({__name__=\"hyperhive.agent.closure_pullable\", hive=~\"$hive\", agent=~\"$agent\"}[3m])) == 0) or vector(0)",
"expr": "count(max by (agent) (last_over_time({__name__=\"hyperhive.agent.closure_pullable\", agent=~\"$agent\"}[3m])) == 0) or vector(0)",
"instant": true,
"legendFormat": "not pullable"
}
@ -294,7 +275,7 @@
"type": "prometheus",
"uid": "@datasourceUid@"
},
"expr": "max by (agent, reason) (last_over_time({__name__=\"hyperhive.agent.closure_pullable\", hive=~\"$hive\", agent=~\"$agent\"}[3m]))",
"expr": "max by (agent, reason) (last_over_time({__name__=\"hyperhive.agent.closure_pullable\", agent=~\"$agent\"}[3m]))",
"instant": true,
"format": "table"
}
@ -389,7 +370,7 @@
"type": "prometheus",
"uid": "@datasourceUid@"
},
"expr": "sum(max by (hive, agent) ({__name__=\"hyperhive.agent.closure_pullable\", hive=~\"$hive\", agent=~\"$agent\"})) or vector(0)",
"expr": "sum(max by (agent) ({__name__=\"hyperhive.agent.closure_pullable\", agent=~\"$agent\"})) or vector(0)",
"legendFormat": "pullable"
},
{
@ -398,7 +379,7 @@
"type": "prometheus",
"uid": "@datasourceUid@"
},
"expr": "count(max by (hive, agent) ({__name__=\"hyperhive.agent.closure_pullable\", hive=~\"$hive\", agent=~\"$agent\"}) == 0) or vector(0)",
"expr": "count(max by (agent) ({__name__=\"hyperhive.agent.closure_pullable\", agent=~\"$agent\"}) == 0) or vector(0)",
"legendFormat": "not pullable"
}
],