mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-26 11:27:00 +08:00
feat: hpa scale max should not alert when min and max are the same
Signed-off-by: R.Sicart <roger.sicart@gmail.com>
This commit is contained in:
parent
dd303221a4
commit
e3b1abcffb
1 changed files with 1 additions and 1 deletions
|
|
@ -1990,7 +1990,7 @@ groups:
|
|||
severity: warning
|
||||
- name: Kubernetes HPA scale maximum
|
||||
description: HPA {{ $labels.namespace }}/{{ $labels.horizontalpodautoscaler }} has hit maximum number of desired pods
|
||||
query: "kube_horizontalpodautoscaler_status_desired_replicas >= kube_horizontalpodautoscaler_spec_max_replicas"
|
||||
query: '(kube_horizontalpodautoscaler_status_desired_replicas >= kube_horizontalpodautoscaler_spec_max_replicas) and (kube_horizontalpodautoscaler_spec_max_replicas > 1) and (kube_horizontalpodautoscaler_spec_min_replicas != kube_horizontalpodautoscaler_spec_max_replicas)'
|
||||
severity: info
|
||||
for: 2m
|
||||
- name: Kubernetes HPA underutilized
|
||||
|
|
|
|||
Loading…
Reference in a new issue