From fb674723b5eccb15decb2c515ad6228489a3bca5 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 7a9cf1ce..9c307ff8 100644 --- a/roles/prometheus/templates/prometheus/alert.rules.yml.j2 +++ b/roles/prometheus/templates/prometheus/alert.rules.yml.j2 @@ -348,4 +348,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