fix: hpa alert is using label but the query removes it

Signed-off-by: R.Sicart <roger.sicart@gmail.com>
This commit is contained in:
R.Sicart 2024-05-14 12:05:51 +02:00
parent 443c1fe79e
commit dd303221a4

View file

@ -149,7 +149,7 @@ groups:
description: "HPA {{ $labels.namespace }}/{{ $labels.horizontalpodautoscaler }} has hit maximum number of desired pods\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
- alert: KubernetesHpaUnderutilized
expr: 'max(quantile_over_time(0.5, kube_horizontalpodautoscaler_status_desired_replicas[1d]) == kube_horizontalpodautoscaler_spec_min_replicas) by (horizontalpodautoscaler) > 3'
expr: 'max(quantile_over_time(0.5, kube_horizontalpodautoscaler_status_desired_replicas[1d]) == kube_horizontalpodautoscaler_spec_min_replicas) by (horizontalpodautoscaler, namespace) > 3'
for: 0m
labels:
severity: info