Sign inSign up

dcurrie/cpu-usage

By dcurrie

Updated almost 10 years ago

Return container CPU usage stats

Image
0

1.0K

dcurrie/cpu-usage repository overview

Docker CPU Usage Stats

This project builds a simple static golang binary and corresponding Docker image that queries the Docker socket to retrieve the list of running containers and, for each, outputs the total CPU usage and elapsed time since the container was started.

The Docker image can be run as follows:

docker run -v /var/run/docker.sock:/var/run/docker.sock --rm dcurrie/cpu-usage

Tag summary

Content type

Image

Digest

Size

1.5 MB

Last updated

almost 10 years ago

docker pull dcurrie/cpu-usage