Last active
March 7, 2020 19:26
-
-
Save yevshev/e41ac58d4e06e54e6ea0423f0592b9b7 to your computer and use it in GitHub Desktop.
docker stats to csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while true; do docker stats --no-stream --format "{{.CPUPerc}},{{.MemUsage}},{{.NetIO}}" container_name | tee --append stats.json; sleep 3; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment