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.archive.backup.last_run_success\"}, 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.archive.backup.last_run_success\", hive=~\"$hive\"}, agent)",
"query": "label_values({__name__=\"hyperhive.archive.backup.last_run_success\"}, agent)",
"refresh": 2,
"includeAll": true,
"allValue": ".*",
@ -90,7 +71,7 @@
"type": "prometheus",
"uid": "@datasourceUid@"
},
"expr": "count(time() - max by (agent) (last_over_time({__name__=\"hyperhive.archive.backup.last_success_timestamp_seconds\", hive=~\"$hive\", agent=~\"$agent\"}[7d])) > 7200) or vector(0)",
"expr": "count(time() - max by (agent) (last_over_time({__name__=\"hyperhive.archive.backup.last_success_timestamp_seconds\", agent=~\"$agent\"}[7d])) > 7200) or vector(0)",
"instant": true
}
],
@ -140,7 +121,7 @@
"type": "prometheus",
"uid": "@datasourceUid@"
},
"expr": "count(max by (agent) (last_over_time({__name__=\"hyperhive.archive.backup.last_run_success\", hive=~\"$hive\", agent=~\"$agent\"}[7d])) == 0) or vector(0)",
"expr": "count(max by (agent) (last_over_time({__name__=\"hyperhive.archive.backup.last_run_success\", agent=~\"$agent\"}[7d])) == 0) or vector(0)",
"instant": true
}
],
@ -190,7 +171,7 @@
"type": "prometheus",
"uid": "@datasourceUid@"
},
"expr": "count(max by (agent) (last_over_time({__name__=\"hyperhive.archive.backup.last_run_success\", hive=~\"$hive\", agent=~\"$agent\"}[7d]))) or vector(0)",
"expr": "count(max by (agent) (last_over_time({__name__=\"hyperhive.archive.backup.last_run_success\", agent=~\"$agent\"}[7d]))) or vector(0)",
"instant": true
}
],
@ -240,7 +221,7 @@
"type": "prometheus",
"uid": "@datasourceUid@"
},
"expr": "time() - max by (agent) (last_over_time({__name__=\"hyperhive.archive.backup.last_success_timestamp_seconds\", hive=~\"$hive\", agent=~\"$agent\"}[7d]))",
"expr": "time() - max by (agent) (last_over_time({__name__=\"hyperhive.archive.backup.last_success_timestamp_seconds\", agent=~\"$agent\"}[7d]))",
"instant": true,
"format": "table"
},
@ -250,7 +231,7 @@
"type": "prometheus",
"uid": "@datasourceUid@"
},
"expr": "max by (agent) (last_over_time({__name__=\"hyperhive.archive.backup.last_run_success\", hive=~\"$hive\", agent=~\"$agent\"}[7d]))",
"expr": "max by (agent) (last_over_time({__name__=\"hyperhive.archive.backup.last_run_success\", agent=~\"$agent\"}[7d]))",
"instant": true,
"format": "table"
},
@ -260,7 +241,7 @@
"type": "prometheus",
"uid": "@datasourceUid@"
},
"expr": "max by (agent) (last_over_time({__name__=\"hyperhive.archive.backup.duration_seconds\", hive=~\"$hive\", agent=~\"$agent\"}[7d]))",
"expr": "max by (agent) (last_over_time({__name__=\"hyperhive.archive.backup.duration_seconds\", agent=~\"$agent\"}[7d]))",
"instant": true,
"format": "table"
},
@ -270,7 +251,7 @@
"type": "prometheus",
"uid": "@datasourceUid@"
},
"expr": "max by (agent) (last_over_time({__name__=\"hyperhive.archive.backup.data_added_bytes\", hive=~\"$hive\", agent=~\"$agent\"}[7d]))",
"expr": "max by (agent) (last_over_time({__name__=\"hyperhive.archive.backup.data_added_bytes\", agent=~\"$agent\"}[7d]))",
"instant": true,
"format": "table"
}
@ -439,7 +420,7 @@
"type": "prometheus",
"uid": "@datasourceUid@"
},
"expr": "max by (agent) ({__name__=\"hyperhive.archive.backup.data_added_bytes\", hive=~\"$hive\", agent=~\"$agent\"})",
"expr": "max by (agent) ({__name__=\"hyperhive.archive.backup.data_added_bytes\", agent=~\"$agent\"})",
"legendFormat": "{{agent}}"
}
],
@ -495,7 +476,7 @@
"type": "prometheus",
"uid": "@datasourceUid@"
},
"expr": "max by (agent) ({__name__=\"hyperhive.archive.backup.duration_seconds\", hive=~\"$hive\", agent=~\"$agent\"})",
"expr": "max by (agent) ({__name__=\"hyperhive.archive.backup.duration_seconds\", agent=~\"$agent\"})",
"legendFormat": "{{agent}}"
}
],