mem
Reference for the `mem` collector.
mem· collector · runnanook doc memfor the same content in your terminal.
System memory and swap usage.
Metrics
| Metric | Kind | Unit | Description |
|---|---|---|---|
mem.total | numeric | bytes | total memory in bytes |
mem.used | numeric | bytes | used memory in bytes |
mem.free | numeric | bytes | free memory in bytes |
mem.available | numeric | bytes | available memory in bytes |
mem.usage | numeric | % | memory usage percentage |
swap.total | numeric | bytes | total swap in bytes |
swap.used | numeric | bytes | used swap in bytes |
Examples
Collect every 10s
[[]]
= "mem"
= 10
Low free memory
[[]]
= "mem.free < 500MB"
= 3
= "ops"
Memory saturation
[[]]
= "mem.usage > 90%"
= 6 # ~1 minute at 10s interval
= "ops"
= { = 600, = "oncall" }
Swap pressure
[[]]
= "swap.used > 100MB"
= 6
= "ops"