Sign inSign up

terenchukv/metrics-container

By terenchukv

•Updated over 7 years ago

Image
0

62

terenchukv/metrics-container repository overview

⁠Usage

get CPU metrics:

docker run --rm -it terenchukv/metrics-container cpu

get RAM metrics:

docker run --rm -it terenchukv/metrics-container mem

get Disk metrics:

docker run --rm --privileged --pid=host -it -v /:/rootfs:ro terenchukv/metrics-container disk

Note! We need to mount the whole host files system as read only into the docker container with -v /:/rootfs:ro for correct mount point description. Mount points after "/rootfs" are system devices. get processes information

docker run --rm --privileged --pid=host -it -v /etc/passwd:/etc/passwd:ro terenchukv/metrics-container proc

Note! We need to mount /etc/passwd into docker container with -v /etc/passwd:/etc/passwd:ro for correct username mapping.

Tag summary

Content type

Image

Digest

Size

342.7 MB

Last updated

over 7 years ago

docker pull terenchukv/metrics-container