Title here
Summary here
It reads the amount of memory, in bytes, used by the cgroup of a container. More information about cgroups can be found in the Linux manual pages.
MemoryUsedCgroupContainerProvidermemory_used_cgroup_container-s: container-ids separated by commas-i: interval in millisecondsBy default the measurement interval is 100 ms.
./metric-provider-binary -i 100 -s 7f38a4c25fb8f9d5f8651d6ed986b3658dba20d1f5fec98a1f71c141c2b48f4b,c3592e1385d63f9c7810470b12aa00f7d6f7c0e2b9981ac2bdb4371126a0660aThis metric provider prints to Stdout a continuous stream of data. The format of the data is as follows:
TIMESTAMP READING CONTAINER-ID
Where:
TIMESTAMP: Unix timestamp, in microsecondsREADING: The amount of memory, in bytes, used during the time intervalCONTAINER-ID: The container ID that this reading is forAny errors are printed to Stderr.
The provider assumes that you have cgroups v2 enabled on your system. It reads from the memory.current file under sys/fs/cgroup/user.slice/user-<USER-ID>.slice/user@<USER-ID>.service/user.slice/docker-<CONTAINER-ID>.scope/
Currently, <USER-ID> is set to the calling user.