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 <siretart@gmail.com>
This commit is contained in:
Reinhard Tartler 2025-06-23 22:32:36 +00:00
parent 2179f0a34d
commit b7f9148d0d

View file

@ -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: {