docs/node-mixin: Improve memory pressure rule
The `instance:node_memory_swap_io_pages:rate1m` rule was intended to measure the amount of memory pressure a system is under, but its name is a bit misleading (it specifically refers to swap), and the rate of `node_vmstat_pgmajfault` is a better metric for memory pressure (see #1524). This commit renames `instance:node_memory_swap_io_pages:rate1m` to `instance:node_vmstat_pgmajfault:rate1m`, and defines it as `rate(node_vmstat_pgmajfault{%(nodeExporterSelector)s}[1m])`. The dashboards are updated accordingly. Signed-off-by: Benoît Knecht <benoit.knecht@fsfe.org>
This commit is contained in:
parent
74a90e81c0
commit
5a7b85876d
2 changed files with 6 additions and 10 deletions
|
|
@ -50,13 +50,9 @@
|
|||
||| % $._config,
|
||||
},
|
||||
{
|
||||
record: 'instance:node_memory_swap_io_pages:rate1m',
|
||||
record: 'instance:node_vmstat_pgmajfault:rate1m',
|
||||
expr: |||
|
||||
(
|
||||
rate(node_vmstat_pgpgin{%(nodeExporterSelector)s}[1m])
|
||||
+
|
||||
rate(node_vmstat_pgpgout{%(nodeExporterSelector)s}[1m])
|
||||
)
|
||||
rate(node_vmstat_pgmajfault{%(nodeExporterSelector)s}[1m])
|
||||
||| % $._config,
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue