From 9e84a5405cce3adcbbcd0481cb1a130da44d4c0a Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Tue, 23 Feb 2021 10:05:39 +0100 Subject: [PATCH] Add a Prometheus alert on no incoming connection (#7517) --- .../monitoring/alerting-rules/alerting-rules.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/substrate/.maintain/monitoring/alerting-rules/alerting-rules.yaml b/substrate/.maintain/monitoring/alerting-rules/alerting-rules.yaml index cf00d7e2b9..5ee2376677 100644 --- a/substrate/.maintain/monitoring/alerting-rules/alerting-rules.yaml +++ b/substrate/.maintain/monitoring/alerting-rules/alerting-rules.yaml @@ -108,6 +108,13 @@ groups: annotations: message: 'The node {{ $labels.instance }} has less than 3 peers for more than 15 minutes' + - alert: NoIncomingConnection + expr: increase(polkadot_sub_libp2p_incoming_connections_total[20m]) == 0 + labels: + severity: warning + annotations: + message: 'The node {{ $labels.instance }} has not received any new incoming + TCP connection in the past 20 minutes. Is it connected to the Internet?' ############################################################################## # System