dashboards: fix runner pod selector and custom-metric labels after panel validation
Panel validation against the live Prometheus API caught three real faults: - pod=~"forgejo-runner-.*" also matched the forgejo-runner-prune-* CronJob pods, which are Completed and permanently not-Ready, so the not-Ready stat read 3. - CNPG custom-query metrics carry namespace/pod from the scrape, not the exporter's cluster label, so cluster="pg" matched nothing (empty panels). - a missing paren in the memory-working-set expression (HTTP 400 from Prometheus). Also make two legitimately-empty stats render a hard 0 (or vector(0)) instead of 'No data': not-Ready runner pods, and nodes with DiskPressure. 55/55 panel targets now return non-empty results.
This commit is contained in:
parent
9e851f4dfe
commit
28632e61c6
3 changed files with 30 additions and 27 deletions
|
|
@ -155,7 +155,7 @@ data:
|
|||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"expr": "sum(kube_node_status_condition{condition=\"DiskPressure\",status=\"true\"} == 1)",
|
||||
"expr": "sum(kube_node_status_condition{condition=\"DiskPressure\",status=\"true\"} == 1) or vector(0)",
|
||||
"refId": "A",
|
||||
"editorMode": "code",
|
||||
"range": true,
|
||||
|
|
|
|||
Loading…
Reference in a new issue