summaryrefslogtreecommitdiff
path: root/roles/monitoring/prometheus/server/defaults/main/rules_chrony.yml
blob: e845a60b39e729468a4ff06740f749761bc63e37 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
---
prometheus_server_rules_chrony_extra: []
prometheus_server_rules_chrony:
  - record: instance:chrony_clock_error_seconds:abs
    expr: abs(chrony_tracking_last_offset_seconds) + chrony_tracking_root_dispersion_seconds + (0.5 * chrony_tracking_root_delay_seconds)

  - alert: ChronyUnreachable
    expr: chrony_up == 0
    for: 0m
    labels:
      severity: critical
    annotations:
      summary: Unable to scrape chrony metrics (instance {{ '{{' }} $labels.instance {{ '}}' }})
      description: "The chrony process might have crashed.\n  VALUE = {{ '{{' }} $value {{ '}}' }}\n  LABELS = {{ '{{' }} $labels {{ '}}' }}"