Docker Resource Consumption - Collecting resource consumption for any running container is equally important than building application to run under docker container. This video explains how can you write Shell script to collect resource consumption for all running container for any defined period of time.
1. How to convert docker stats output into time series data points
2. How to format docker stats output by using --format option
3. Enhance script to accept time duration from command line as an argument
4. Modify Shell scripts to
i. Cleanup docker stats command output
ii. Append timestamp to the output of docker stats command to make time series data
Docker- How to collect resource consumption for docker container ( With Shell Script) - Part1
• Docker- How to collect resource consu...