CPU Time - cgroup - system
What it does
This metric provider reads time spent in the CPU based on the cgroups stats file for all your cgroups. More information about cgroups can be found here.
-i: interval in milliseconds
By default the measurement interval is 100 ms.
./metric-provider-binary -i 100
This metric provider prints to Stdout a continuous stream of data. The format of the data is as follows:
TIMESTAMP: Unix timestamp, in microseconds
READING:The time spent in the CPU, in microseconds, by all cgroup containers
Any errors are printed to Stderr.
How it works
The provider assumes that you have cgroups v2 enabled on your system
The provider reads from the
In order to work in rootless cgroup delegation must be enabled here:
<USER-ID> is set to the calling user.