This script allows you to print basic server metrics about your CPU and memory.
Allowed commands:
cpu
mem
Execute script with cpu argument: ./metrics.sh cpu
Execute script with mem argument: ./metrics.sh mem
Run docker container with command specified in allowed commands list
docker run -t --rm artem7mag/metrics:latest cpu
user 17.25
nice 0.00
system 1.95
iowait 0.21
steal 0.00
idle 80.60