docker-stats is a tiny cli tool for dumping docker-stats info as text, csv (text/csv; header=present) or json (application/json).
How does it work?
It connects to Docker API (either TCP or pipe) and polls the information directly from the engine, using official Docker Client.
Known issues
The tool is built against latest stable SDK. If you're running docker from experimental channel, you may need to narrow down API version, by setting DOCKER_API_VERSION environment variable: