Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sylhare/docker-stats-graph
🐳 Plot graph and more from docker stats, jmeter
https://github.com/sylhare/docker-stats-graph
dockerstats jmeter reports
Last synced: 3 months ago
JSON representation
🐳 Plot graph and more from docker stats, jmeter
- Host: GitHub
- URL: https://github.com/sylhare/docker-stats-graph
- Owner: sylhare
- License: mit
- Created: 2020-11-04T18:08:29.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-11-28T14:42:09.000Z (about 1 year ago)
- Last Synced: 2023-11-28T15:48:36.508Z (about 1 year ago)
- Topics: dockerstats, jmeter, reports
- Language: Jupyter Notebook
- Homepage:
- Size: 1.1 MB
- Stars: 16
- Watchers: 3
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
Docker Stats Graph
==================.. |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-graphTo plot docker stats into graph from multiple dockers.
Get Started
-----------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.Docker Stats Info
-----------------Let's dig into each of those columns:
- The **CONTAINER** column lists the container IDs.
- The **CPU %** column reports the host capacity CPU utilization.- For example, if you have two containers, each allocated the same CPU shares by Docker, and each using max CPU, the docker stats command for each container would report 50% CPU utilization. Though from the container's perspective, their CPU resources would be fully utilized.
- 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.
- If there is no explicit memory limit set for the container, the memory usage limit will be the memory limit of the host machine.Note that like the CPU % column, these columns report on host utilization.
- 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.Testing
-------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
# Run the test suite
tox
# Run the linter:
tox -e lint
# Run the coverage on the src module
tox -e coverageMisc Notes
----------- If you have issue with tox and ``ModuleNotFoundError``, try set
``recreate`` to ``True`` in ``tox.ini``.Sources
-------Some of the source I use for the `docker stats` command.
- Documentation from docker_
- Article on analyzing-docker-container-performance-native-tools_
- Article on monitoring-docker_
- Datascience Handbook_.. _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/