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

MetricTypeUnitDescription
mem_total_bytesGaugebytesTotal amount of physical RAM.
mem_used_bytesGaugebytesAmount of memory currently in use.
mem_available_bytesGaugebytesAmount of memory available for new processes without swapping.
mem_free_bytesGaugebytesAmount of memory that is completely unused.
mem_used_ratioGauge%Ratio of used memory (0.0 to 1.0).
mem_swap_total_bytesGaugebytesTotal amount of swap space.
mem_swap_used_bytesGaugebytesAmount of swap space currently in use.
mem_swap_free_bytesGaugebytesAmount of free swap space.
mem_swap_used_ratioGauge%Ratio of used swap space (0.0 to 1.0).