Title here
Summary here
Green Metrics Tool
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.
CpuTimeCgroupSystemProvider
cpu_time_cgroup_system
-i
: interval in millisecondsBy 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 READING
Where:
TIMESTAMP
: Unix timestamp, in microsecondsREADING
:The time spent in the CPU, in microseconds, by all cgroup containersAny errors are printed to Stderr.
The provider assumes that you have cgroups v2 enabled on your system
The provider reads from the /sys/fs/cgroup/cpu.stat
file.
In order to work in rootless cgroup delegation must be enabled here:
/etc/systemd/system/user@.service.d/delegate.conf
Currently, <USER-ID>
is set to the calling user.