mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-26 19:37:27 +08:00
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:
parent
443c1fe79e
commit
dd303221a4
1 changed files with 1 additions and 1 deletions
2
dist/rules/kubernetes/kubestate-exporter.yml
vendored
2
dist/rules/kubernetes/kubestate-exporter.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue