Skip to content

Simple python script used psutil, wrapped in docker

License

Notifications You must be signed in to change notification settings

tflash/docker-psutil

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker-psutil - simple python cli tool in docker container.

MIT License

This simple metrics collection script written on Python and using psutil library, which takes off metrics from your server CPU and RAM. Has only two arguments cpu & mem.

How to use?

Simply pulling the image using docker pull tflash8/docker-psutil

and run it with argument cpu or mem:

docker run -it --rm \
     --name new-container \
     tflash8/docker-psutil \
     cpu

It runs your container and removes it after a successful execution python script.

If you run container without arguments you will see --help page such it:

Logo

Available two cli arguments:

Available commands Description
cpu Print CPU metrics such system.cpu.system, system.cpu.idle and etc.
mem Print RAM metrics such virt.total, virt.used and etc.

About

Simple python script used psutil, wrapped in docker

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published