1
0
Fork 0
mirror of https://github.com/monitoring-mixins/website.git synced 2024-12-15 17:50:48 +00:00
monitoring-mixins-website/assets/consul/alerts.yaml

28 lines
589 B
YAML
Raw Normal View History

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