CPU Time - procfs - system
What it does
This metric provider reads the total time spent in the CPU based on the system
-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 microseconds, by this container in the CPU
Any errors are printed to Stderr.
How it works
The provider reads from
/proc/stat. We collect user, nice, system, idle iowait, irq, softirq, steal (see definitions here), and add them together over the measurement period.