mirror of
https://github.com/prometheus/node_exporter.git
synced 2025-08-20 18:33:52 -07:00
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:
parent
2179f0a34d
commit
b7f9148d0d
|
@ -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: {
|
||||
|
|
Loading…
Reference in a new issue