diff --git a/modules/nixos/monitor/default.nix b/modules/nixos/monitor/default.nix index d1e09a6..5b9d31a 100644 --- a/modules/nixos/monitor/default.nix +++ b/modules/nixos/monitor/default.nix @@ -158,7 +158,7 @@ in severity = "critical"; }; annotations = { - summary = "Job {{ $labels.job }} down for 1m."; + summary = "Instance {{ $labels.instance }} of {{ $labels.job }} is down."; }; } ]; diff --git a/overlays/my-lib/prometheus.nix b/overlays/my-lib/prometheus.nix index 99854cc..c394e4e 100644 --- a/overlays/my-lib/prometheus.nix +++ b/overlays/my-lib/prometheus.nix @@ -132,8 +132,7 @@ in severity = "critical"; }; annotations = { - summary = "Systemd has failed units on {{ $labels.instance }}"; - description = "There are {{ $value }} failed units on {{ $labels.instance }}. Immediate attention required!"; + summary = "{{ $labels.job }} failed on {{ $labels.instance }}."; }; } { @@ -144,7 +143,7 @@ in severity = "warning"; }; annotations = { - summary = "High load average detected on {{ $labels.instance }}"; + summary = "High load average on {{ $labels.instance }}."; description = "The 1-minute load average ({{ $value }}) exceeds 80% the number of CPUs."; }; } @@ -167,7 +166,7 @@ in severity = "warning"; }; annotations = { - summary = "High disk usage on {{ $labels.instance }}"; + summary = "Disk usage exceeeds 85% on {{ $labels.instance }}"; }; } { @@ -180,7 +179,6 @@ in }; annotations = { summary = "Disk usage will exceed 95% in 12 hours on {{ $labels.instance }}"; - description = "Disk {{ $labels.mountpoint }} is predicted to exceed 92% usage within 12 hours at current growth rate"; }; } { @@ -191,8 +189,7 @@ in severity = "warning"; }; annotations = { - summary = "High swap usage on {{ $labels.instance }}"; - description = "Swap usage is above 80% for 5 minutes\n Current value: {{ $value }}%"; + summary = "Swap usage above 80% on {{ $labels.instance }}"; }; } {