consul

Overview

Grafana dashboards and Prometheus alerts for operating Consul, in the form of a monitoring mixin.

Jsonnet source code is available at github.com/grafana/jsonnet-libs

Alerts

Complete list of pregenerated alerts is available here.

consul

ConsulUp

alert: ConsulUp
annotations:
  message: Consul '{{ $labels.job }}' is not up.
expr: |
  consul_up != 1
for: 1m
labels:
  severity: critical

ConsulMaster

alert: ConsulMaster
annotations:
  message: Consul '{{ $labels.job }}' has no master.
expr: |
  consul_raft_leader != 1
for: 1m
labels:
  severity: critical

ConsulPeers

alert: ConsulPeers
annotations:
  message: Consul '{{ $labels.job }}' does not have 3 peers.
expr: |
  consul_raft_peers != 3
for: 10m
labels:
  severity: critical

Dashboards

Following dashboards are generated from mixins and hosted on github: