Created
October 18, 2018 15:23
-
-
Save camdenfullmer/a3669aaaac659c38f749c5fb5933857c to your computer and use it in GitHub Desktop.
Collect memory usage from a Docker container into a CSV file
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
#!/bin/bash | |
while true; do | |
docker stats --no-stream --format "{{.MemPerc}}," $1 >> memory_usage.csv; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment