2021-10-22 23:53:42 +02:00
|
|
|
groups:
|
|
|
|
- name: alert.rules
|
|
|
|
rules:
|
|
|
|
- alert: InstanceDown
|
2021-10-23 18:14:51 +02:00
|
|
|
expr: up{job="node-exporter"} == 0
|
2021-10-23 18:26:08 +02:00
|
|
|
for: 5m
|
2021-10-22 23:53:42 +02:00
|
|
|
labels:
|
|
|
|
severity: critical
|
|
|
|
annotations:
|
|
|
|
summary: "Endpoint {{ $labels.instance }} down"
|
2023-04-22 18:30:51 +02:00
|
|
|
description: "{{ $labels.instance }} is unreachable"
|
2023-02-04 01:15:07 +01:00
|
|
|
- alert: InstanceConfigNotSync
|
|
|
|
expr: nixos_current_system_is_sync{} == 0
|
|
|
|
for: 2h
|
|
|
|
labels:
|
|
|
|
severity: warning
|
|
|
|
annotations:
|
|
|
|
summary: "Current system of {{ $labels.instance }} not in sync with config"
|
|
|
|
description: "The current system hash of {{ $labels.instance }} does not match the one generated by hydra based on the current config"
|
2022-09-14 19:38:10 +02:00
|
|
|
- alert: BackupStorageFull
|
2023-05-04 14:43:14 +02:00
|
|
|
expr: ((avg_over_time(node_filesystem_avail_bytes{job="node-exporter"}[5m]) / avg_over_time(node_filesystem_size_bytes{job="node-exporter"}[5m])) * 100) < 5
|
2022-09-14 19:38:10 +02:00
|
|
|
for: 30m
|
|
|
|
labels:
|
|
|
|
severity: critical
|
|
|
|
annotations:
|
2023-04-22 18:30:51 +02:00
|
|
|
summary: "Storage of {{ $labels.instance }} is full"
|
|
|
|
description: "Storage of {{ $labels.instance }} for {{ $labels.mountpoint }} on {{ $labels.device }} is full"
|
2023-05-24 08:41:35 +02:00
|
|
|
- alert: ClerieBackupJobLastSuccessfulRunBehind
|
2023-05-25 04:33:43 +02:00
|
|
|
expr: time() - clerie_backup_last_successful_run_time{} >= 9000
|
2023-05-24 08:41:35 +02:00
|
|
|
for: 5m
|
|
|
|
labels:
|
|
|
|
severity: warning
|
|
|
|
annotations:
|
|
|
|
summary: "Last successful backup on {{ $labels.instance }} older than 1h"
|
|
|
|
description: "Backup job {{ $labels.backup_job }} to target {{ $labels.backup_instance }} finished successfully over an hour ago"
|
2022-10-02 11:59:37 +02:00
|
|
|
- alert: InstanceJustBooted
|
|
|
|
expr: time() - node_boot_time_seconds{job="node-exporter"} <= 300
|
|
|
|
labels:
|
|
|
|
severity: warning
|
|
|
|
annotations:
|
|
|
|
summary: "Uptime of {{ $labels.instance }} less than 5 min"
|
|
|
|
description: "{{ $labels.instance }} just booted"
|
2023-01-05 23:16:50 +01:00
|
|
|
- alert: EventInstanceDown
|
|
|
|
expr: up{job="node-exporter", service_level="event"} == 0
|
|
|
|
for: 2h
|
|
|
|
labels:
|
|
|
|
mute: instance
|
|
|
|
severity: muted
|
|
|
|
annotations:
|
|
|
|
summary: "Event instance {{ $labels.instance }} down"
|
|
|
|
description: "{{ $labels.instance }} has been down for more than 2 hours."
|
2023-03-25 20:42:17 +01:00
|
|
|
- alert: KernelChanged
|
2023-05-04 14:43:14 +02:00
|
|
|
expr: avg_over_time(nixos_current_system_kernel_is_booted_system_kernel{job="nixos-exporter"}[5m]) == 0
|
2023-03-25 20:42:17 +01:00
|
|
|
for: 2h
|
|
|
|
labels:
|
|
|
|
severity: warning
|
|
|
|
annotations:
|
|
|
|
summary: "Kernel of {{ $labels.instance }} changed"
|
|
|
|
description: "The Kernel {{ $labels.instance }} booted with, isn't the target Kernel. A reboot may be required."
|