Memory
Monitor system-wide virtual memory and swap usage to track resource availability and identify memory pressure. This collector provides insights into how much memory is actively used, cached, or available for new processes.
Setup
Memory monitoring is enabled by default. The agent automatically retrieves memory statistics from the operating system upon startup. No manual configuration is required.
Configuration
No configuration required.
Metrics
| Metric | Type | Unit | Description |
|---|---|---|---|
mem_total_bytes | Gauge | bytes | Total amount of physical RAM. |
mem_used_bytes | Gauge | bytes | Amount of memory currently in use. |
mem_available_bytes | Gauge | bytes | Amount of memory available for new processes without swapping. |
mem_free_bytes | Gauge | bytes | Amount of memory that is completely unused. |
mem_used_ratio | Gauge | % | Ratio of used memory (0.0 to 1.0). |
mem_swap_total_bytes | Gauge | bytes | Total amount of swap space. |
mem_swap_used_bytes | Gauge | bytes | Amount of swap space currently in use. |
mem_swap_free_bytes | Gauge | bytes | Amount of free swap space. |
mem_swap_used_ratio | Gauge | % | Ratio of used swap space (0.0 to 1.0). |