1
0
Fork 0
mirror of https://github.com/monitoring-mixins/website.git synced 2024-12-14 11:37:31 +00:00
monitoring-mixins-website/assets/consul/alerts.yaml

27 lines
589 B
YAML

groups:
- name: consul
rules:
- alert: ConsulUp
annotations:
message: Consul '{{ $labels.job }}' is not up.
expr: |
consul_up != 1
for: 1m
labels:
severity: critical
- alert: ConsulMaster
annotations:
message: Consul '{{ $labels.job }}' has no master.
expr: |
consul_raft_leader != 1
for: 1m
labels:
severity: critical
- alert: ConsulPeers
annotations:
message: Consul '{{ $labels.job }}' does not have 3 peers.
expr: |
consul_raft_peers != 3
for: 10m
labels:
severity: critical