mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-24 02:17:00 +08:00
Fixed HPA rule to use more correct condition (#408)
* Fixed HPA rule to use more correct condition * Update rules.yml --------- Co-authored-by: Samuel Berthe <dev@samuel-berthe.fr>
This commit is contained in:
parent
847143ecc9
commit
870bbd47d2
1 changed files with 1 additions and 1 deletions
|
|
@ -1981,7 +1981,7 @@ groups:
|
||||||
for: 1m
|
for: 1m
|
||||||
- name: Kubernetes HPA scale inability
|
- name: Kubernetes HPA scale inability
|
||||||
description: HPA {{ $labels.namespace }}/{{ $labels.horizontalpodautoscaler }} is unable to scale
|
description: HPA {{ $labels.namespace }}/{{ $labels.horizontalpodautoscaler }} is unable to scale
|
||||||
query: 'kube_horizontalpodautoscaler_status_condition{status="false", condition="AbleToScale"} == 1'
|
query: '(kube_horizontalpodautoscaler_spec_max_replicas - kube_horizontalpodautoscaler_status_desired_replicas) * on (horizontalpodautoscaler,namespace) (kube_horizontalpodautoscaler_status_condition{condition="ScalingLimited", status="true"} == 1) == 0'
|
||||||
severity: warning
|
severity: warning
|
||||||
for: 2m
|
for: 2m
|
||||||
- name: Kubernetes HPA metrics unavailability
|
- name: Kubernetes HPA metrics unavailability
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue