Update rules.yml

This commit is contained in:
Samuel Berthe 2023-01-16 00:37:38 +01:00 committed by GitHub
parent e98e4d0516
commit 5e84329360
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1709,10 +1709,9 @@ groups:
severity: info
for: 2m
- name: Kubernetes HPA underutilized
description: HPA is constantly at minimum replicas for 50% of the time
description: HPA is constantly at minimum replicas for 50% of the time. Potential cost saving here.
query: 'max(quantile_over_time(0.5, kube_horizontalpodautoscaler_status_desired_replicas[1d]) == kube_horizontalpodautoscaler_spec_min_replicas) by (horizontalpodautoscaler) > 3' # allow minimum 3 replicas running
severity: info
for: 5m
- name: Kubernetes Pod not healthy
description: Pod has been in a non-ready state for longer than 15 minutes.
query: 'sum by (namespace, pod) (kube_pod_status_phase{phase=~"Pending|Unknown|Failed"}) > 0'