Repository navigation
Added
-
Selective Field Recording
Introduced a new environment variableSTATS_FIELDSfor controlling which stats fields are collected and stored.- Empty (default) → collects all fields
ESSENTIAL→ collects a minimal, core set of CPU, memory, and network fields- Comma-separated list → collects only those specified fields (e.g.
cpu_percent,mem_used,pids_current)
Log messages now alert if any requested fields do not exist in the actual Docker stats payload.
-
Expanded Metrics Extraction
- Additional fields extracted from Docker stats (e.g. block I/O, PID stats, per-CPU usage, and timestamps).
- Enhanced memory stats (RSS, page faults, inactive pages, etc.).
- Support for capturing
read_timeandpreread_timeas UNIX timestamps.
Changed
-
Documentation
- Updated
README.mdto include examples and instructions for using the newSTATS_FIELDSfeature. - Added more detailed “Available Metrics” tables in
docs/configuration.mdfor quick reference.
- Updated
-
Internal Refactoring
- Consolidated logic for filtering fields into a single, easily maintainable function.
- Enhanced logging around missing or undefined fields.
Fixed
- Resolved minor logging inconsistencies for Docker events and container restarts.