dashboards: filter agents by agent and hosts by host.name, drop the hive variable
This commit is contained in:
parent
22c4d16a20
commit
7796f53874
1 changed files with 129 additions and 237 deletions
|
|
@ -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"
|
||||
}
|
||||
],
|
||||
|
|
|
|||
Loading…
Reference in a new issue