Verified Commit a70c19e5 authored by Jelle van der Waa's avatar Jelle van der Waa 🚧
Browse files

Group security/out of date packages alerts

We want to get notifications of pacman/arch-audit notifications grouped
as otherwise we'll be spammed with ~ X emails for every host.

Closes: #191
parent d39fd3ef
Pipeline #6428 passed with stage
in 49 seconds
......@@ -208,6 +208,7 @@ groups:
for: 15m
labels:
severity: warning
service: pacman
annotations:
description: 'host {{ $labels.instance }} has out of date packages'
summary: '{{ $labels.instance }} has {{ $value }} > 50 out of date packages'
......@@ -216,6 +217,7 @@ groups:
for: 15m
labels:
severity: warning
service: pacman
annotations:
description: 'host {{ $labels.instance }} has vulnerable date packages'
summary: '{{ $labels.instance }} has {{ $value }} vulnerable packages'
......
......@@ -16,6 +16,11 @@ route:
- receiver: 'rebuilderd'
match_re:
service: rebuilderd
- group_wait: 4h
group_interval: 2h
group_by: ['service']
match:
service: pacman
receivers:
- name: 'default-receiver'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment