From f9f278cb650025af39fbddc0b570df035bf69857 Mon Sep 17 00:00:00 2001 From: Jeltz Date: Thu, 2 Nov 2023 06:15:47 +0100 Subject: [PATCH] prometheus: temporarily disable alerts for rezel, vr & isp --- group_vars/prom/prometheus.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/group_vars/prom/prometheus.yml b/group_vars/prom/prometheus.yml index 9404e88..0326f78 100644 --- a/group_vars/prom/prometheus.yml +++ b/group_vars/prom/prometheus.yml @@ -270,7 +270,11 @@ prometheus__alert_rules_bird: - record: bird:protocol_up:bgp expr: label_replace( - bird_protocol_up{proto="BGP"}, + bird_protocol_up{proto="BGP",} + unless bird_protocol_up{ + proto="BGP", + name=~"^(viarezo|isp[12]|rezel)[46]$" + }, "group", "$1", "instance", "^([^0-9\\.]+)-[0-9]+.*" )