Skip to content

Instantly share code, notes, and snippets.

@niftynei niftynei/alerts.yml
Created Sep 24, 2019

Embed
What would you like to do?
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
You can’t perform that action at this time.