🐳 Plot graph and more from docker stats, jmeter
MIT License
.. |Codecov Badge| image:: https://codecov.io/gh/sylhare/docker-stats-graph/branch/master/graph/badge.svg?token=H7VDPOZJWT :target: https://codecov.io/gh/sylhare/docker-stats-graph
To plot docker stats into graph from multiple dockers.
Run the scrips/generate_data.sh
, this will produce a data.csv that will be used to create the graphs.
Then to use or plot the data:
.. code:: python
from src.dockerstats import * ds = DockerStats("tests/resources/data.csv") ds.plot_category_all()
See https://sylhare.github.io/docker-stats-graph/ for a worked example.
Let's dig into each of those columns:
The CONTAINER column lists the container IDs.
The CPU % column reports the host capacity CPU utilization.
The MEM USAGE / LIMIT and MEM % columns display the amount of memory used by the container, along with the container memory limit, and the corresponding container utilization percentage.
The NET I/O column displays the total bytes received and transmitted over the network by the corresponding container.
The BLOCK I/O section displays the total bytes written and read to the container file system.
The PIDS column displays the number of kernel process IDs running inside the corresponding container.
To find out more info about the testing configuration, check out the
tox.ini
file.
Use the dev-requirements.txt
for libraries only used for tests or dev.
.. code:: bash
tox
tox -e lint
tox -e coverage
ModuleNotFoundError
, try setrecreate
to True
in tox.ini
.Some of the source I use for the docker stats
command.
.. _analyzing-docker-container-performance-native-tools: https://crate.io/a/analyzing-docker-container-performance-native-tools/ .. _docker: https://docs.docker.com/engine/reference/commandline/stats/ .. _monitoring-docker: http://www.zakariaamine.com/2019-12-04/monitoring-docker .. _Handbook: https://jakevdp.github.io/PythonDataScienceHandbook/