From 4a2359119c4bccca8bc8ea96e25dcdde2d58afcb Mon Sep 17 00:00:00 2001 From: Samuel Berthe Date: Mon, 13 May 2024 11:10:41 +0200 Subject: [PATCH] Update rules.yml --- _data/rules.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_data/rules.yml b/_data/rules.yml index 7605477..5db2ea8 100644 --- a/_data/rules.yml +++ b/_data/rules.yml @@ -1878,7 +1878,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="true", condition="ScalingLimited"} == 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