summaryrefslogtreecommitdiff
path: root/roles/monitoring/prometheus/server/defaults/main/rules_openwrt.yml
blob: d4bc934d04129cbab3239faf51e052d00f789b9d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
---
prometheus_server_rules_openwrt_extra: []
prometheus_server_rules_openwrt:
  - alert: HostConntrackTableFillingUp
    expr: node_nf_conntrack_entries / node_nf_conntrack_entries_limit * 100 > 70
    for: 2m
    labels:
      severity: warning
    annotations:
      summary: Host conntrack table is filling up (instance {{ '{{' }} $labels.instance {{ '}}' }})
      description: "Node conntrack table usage is > 70%.\n  VALUE = {{ '{{' }} $value {{ '}}' }}\n  LABELS = {{ '{{' }} $labels {{ '}}' }}"

  - alert: HostConntrackTableAlmostFull
    expr: node_nf_conntrack_entries / node_nf_conntrack_entries_limit * 100 > 90
    for: 2m
    labels:
      severity: critical
    annotations:
      summary: Host conntrack table is almost full (instance {{ '{{' }} $labels.instance {{ '}}' }})
      description: "Node conntrack table usage is > 90%.\n  VALUE = {{ '{{' }} $value {{ '}}' }}\n  LABELS = {{ '{{' }} $labels {{ '}}' }}"