Skip to content

Instantly share code, notes, and snippets.

@wzhliang
Created January 25, 2019 05:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wzhliang/ff5466b1e435b0ba5fa3b391021623ce to your computer and use it in GitHub Desktop.
Save wzhliang/ff5466b1e435b0ba5fa3b391021623ce to your computer and use it in GitHub Desktop.
prometheus alert configuration
groups:
- name: etcd
rules:
- alert: NoLeader
expr: etcd_server_has_leader{job="kube-etcd"} == 0
for: 1m
labels:
severity: critical
k8s-component: etcd
annotations:
description: etcd member {{ $labels.instance }} has no leader
summary: etcd member has no leader
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment