From 39861f835274732b8fa4239401da59599439414a Mon Sep 17 00:00:00 2001 From: Alexandre Iooss <erdnaxe@crans.org> Date: Tue, 1 Jun 2021 21:59:36 +0200 Subject: [PATCH] [prometheus] Antispam for templier --- roles/prometheus/templates/prometheus/alert.rules.yml.j2 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/roles/prometheus/templates/prometheus/alert.rules.yml.j2 b/roles/prometheus/templates/prometheus/alert.rules.yml.j2 index afc37b65..ebdbe0a2 100644 --- a/roles/prometheus/templates/prometheus/alert.rules.yml.j2 +++ b/roles/prometheus/templates/prometheus/alert.rules.yml.j2 @@ -184,4 +184,12 @@ groups: annotations: summary: "{{ $labels.disk }} sur {{ $labels.instance }} a {{ $value }} secteurs réalloués." + - alert: TooManyUDPErrors + expr: irate(node_netstat_Udp_InErrors[5m]) > 100 + for: 2m + labels: + severity: warning + annotations: + summary: "{{ $labels.instance }} a plus de {{ $value }} connexions UDP en erreur. Quelque chose spam!" + {% endraw %} -- GitLab