Skip to content

Instantly share code, notes, and snippets.

@niftynei
Created September 24, 2019 17:46
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 niftynei/283b6237d3a34d3c6e4b196c20d464c5 to your computer and use it in GitHub Desktop.
Save niftynei/283b6237d3a34d3c6e4b196c20d464c5 to your computer and use it in GitHub Desktop.
Alertmanager Config
groups:
- name: c-lightning.rules
  rules:
  - alert: c_lightning_node_down
    expr: lightning_node_info{job="lightningd"} == 0
    for: 1m
    labels:
      team: c-lightning
      severity: urgent
    annotations:
      summary: 'c-lightning node is down'
      description: |
        c-lightning node is down. Wake up!
  - alert: c_lightning_has_no_peers
    expr: absent(lightning_peer_connected) == 1
    for: 1m
    labels:
      team: c-lightning
      severity: urgent
    annotations:
      summary: 'c-lightning has no peers'
      description: |
        c-lightning node has no connections to other peers. You may want to look into why this is so (e.g. firewall problems, internet connectivity, etc.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment