Created
September 28, 2018 12:47
-
-
Save zinovyev/db45a6e0e73346786cd2226df2dc75ce to your computer and use it in GitHub Desktop.
Output docker stats as json
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
docker stats --no-stream --no-trunc --format '{ "container": "{{ .Container }}", "name": "{{ .Name }}", "id": "{{ .ID }}", "cpu_perc": "{{ .CPUPerc }}", "mem_usage": "{{ .MemUsage }}", "net_io": "{{ .NetIO }}", "block_io": "{{ .BlockIO }}", "mem_perc": "{{ .MemPerc }}", "pids": "{{ .PIDs }}" }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment