From 48bb6f670c6b8e1755312d19ab03686f8d555916 Mon Sep 17 00:00:00 2001
From: Povilas Versockas
Date: Thu, 5 Mar 2020 08:55:11 +0200
Subject: [PATCH] Add NodeHighNumberConntrackEntriesUsed
Signed-off-by: Povilas Versockas
---
docs/node-mixin/alerts/alerts.libsonnet | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/docs/node-mixin/alerts/alerts.libsonnet b/docs/node-mixin/alerts/alerts.libsonnet
index b95b1c58..b63d2a59 100644
--- a/docs/node-mixin/alerts/alerts.libsonnet
+++ b/docs/node-mixin/alerts/alerts.libsonnet
@@ -184,6 +184,19 @@
description: '{{ $labels.instance }} interface {{ $labels.device }} has encountered {{ printf "%.0f" $value }} transmit errors in the last two minutes.',
},
},
+ {
+ alert: 'NodeHighNumberConntrackEntriesUsed',
+ expr: |||
+ (node_nf_conntrack_entries / node_nf_conntrack_entries_limit) > 0.75
+ ||| % $._config,
+ annotations: {
+ summary: 'Number of conntrack are getting close to the limit'
+ description: '{{ $value | humanizePercentage }} of conntrack entries are used',
+ },
+ labels: {
+ severity: 'warning',
+ },
+ },
],
},
],