Skip to content

Commit

Permalink
Fixed HPA rule to use more correct condition (#408)
Browse files Browse the repository at this point in the history
* Fixed HPA rule to use more correct condition

* Update rules.yml

---------

Co-authored-by: Samuel Berthe <dev@samuel-berthe.fr>
  • Loading branch information
dharapvj and samber committed May 13, 2024
1 parent 847143e commit 870bbd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _data/rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1981,7 +1981,7 @@ groups:
for: 1m
- name: Kubernetes HPA scale inability
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
for: 2m
- name: Kubernetes HPA metrics unavailability
Expand Down

0 comments on commit 870bbd4

Please sign in to comment.