Expand description
Cgroups v2 statistics reader for container metrics
Provides functionality to read CPU and memory statistics from cgroups v2 filesystem for container resource monitoring and autoscaling decisions.
Structs§
- Container
Stats - Container resource statistics from cgroups v2
Functions§
- calculate_
cpu_ percent - Calculate CPU percentage from two consecutive samples
- calculate_
cpu_ percent_ with_ cpus - Calculate CPU percentage with a specified number of CPUs
- read_
container_ stats - Read container statistics from cgroups v2 filesystem