From b7f9148d0d9c733c96d71e44d7f1db8fe6b4b0fa Mon Sep 17 00:00:00 2001 From: Reinhard Tartler Date: Mon, 23 Jun 2025 22:32:36 +0000 Subject: [PATCH] Fix NodeMemoryHighUtilization Take buffer cache into account when calculating the alert. That memory is avaiable to applications when needed. Fixes: https://github.com/prometheus-community/helm-charts/issues/4567 Signed-off-by: Reinhard Tartler --- docs/node-mixin/alerts/alerts.libsonnet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/node-mixin/alerts/alerts.libsonnet b/docs/node-mixin/alerts/alerts.libsonnet index 61d9dd2d..ebaa2255 100644 --- a/docs/node-mixin/alerts/alerts.libsonnet +++ b/docs/node-mixin/alerts/alerts.libsonnet @@ -363,7 +363,7 @@ { alert: 'NodeMemoryHighUtilization', expr: ||| - 100 - (node_memory_MemAvailable_bytes{%(nodeExporterSelector)s} / node_memory_MemTotal_bytes{%(nodeExporterSelector)s} * 100) > %(memoryHighUtilizationThreshold)d + 100 - ((node_memory_Cached_bytes{%(nodeExporterSelector)s} + node_memory_MemAvailable_bytes{%(nodeExporterSelector)s}) / node_memory_MemTotal_bytes{%(nodeExporterSelector)s} * 100) > %(memoryHighUtilizationThreshold)d ||| % $._config, 'for': '15m', labels: {