mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-26 19:37:27 +08:00
_data/rules.yml: Simplify KubeVersionMismatch rule query.
This commit is contained in:
parent
158e40ad21
commit
ad3093a453
1 changed files with 1 additions and 1 deletions
|
|
@ -329,7 +329,7 @@ services:
|
|||
severity: critical
|
||||
- name: KubeVersionMismatch
|
||||
description: "There are {{ $value }} different semantic versions of Kubernetes components running."
|
||||
query: 'count(count by (gitVersion) (label_replace(kubernetes_build_info{job!="coredns"},"gitVersion","$1","gitVersion","(v[0-9]*.[0-9]*.[0-9]*).*"))) > 1'
|
||||
query: 'count(count(kubernetes_build_info{job!="coredns"}) by (gitVersion)) > 1'
|
||||
severity: warning
|
||||
- name: KubeletDown
|
||||
description: "Kubelet has disappeared from Prometheus target discovery."
|
||||
|
|
|
|||
Loading…
Reference in a new issue