From 8823605f122c7d6618979c388651b4ea198ba529 Mon Sep 17 00:00:00 2001 From: Vitaly Zhuravlev Date: Thu, 7 Apr 2022 16:25:17 +0400 Subject: [PATCH] Fix NodeFileDescriptorLimit alerts Signed-off-by: Vitaly Zhuravlev --- docs/node-mixin/alerts/alerts.libsonnet | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/node-mixin/alerts/alerts.libsonnet b/docs/node-mixin/alerts/alerts.libsonnet index 1d81136a..f186dbda 100644 --- a/docs/node-mixin/alerts/alerts.libsonnet +++ b/docs/node-mixin/alerts/alerts.libsonnet @@ -281,7 +281,7 @@ alert: 'NodeFileDescriptorLimit', expr: ||| ( - node_filefd_allocated{job="node-exporter"} * 100 / node_filefd_maximum{job="node-exporter"} > 70 + node_filefd_allocated{%(nodeExporterSelector)s} * 100 / node_filefd_maximum{%(nodeExporterSelector)s} > 70 ) ||| % $._config, 'for': '15m', @@ -297,7 +297,7 @@ alert: 'NodeFileDescriptorLimit', expr: ||| ( - node_filefd_allocated{job="node-exporter"} * 100 / node_filefd_maximum{job="node-exporter"} > 90 + node_filefd_allocated{%(nodeExporterSelector)s} * 100 / node_filefd_maximum{%(nodeExporterSelector)s} > 90 ) ||| % $._config, 'for': '15m',