Helm charts repository for various utiltiies
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

32 lines
690 B

---
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
namespace: {{ .Release.Namespace }}
name: {{ include "haproxy-exporter.fullname" . }}
labels:
{{ include "haproxy-exporter.labels" $ | indent 4 }}
spec:
groups:
- name: haproxy
rules:
- alert: HaproxyDown
expr: |
absent(haproxy_up == 1)
for: 1m
labels:
severity: critical
- alert: HaproxyBackendDown
for: 1m
expr: |
haproxy_backend_up != 1
labels:
severity: P2
- alert: HaproxyBackendDegraded
expr: |
avg(haproxy_server_up) by (instance, backend, server) != 1
for: 1m
labels:
severity: P3