{"id":16550286,"url":"https://github.com/sylhare/docker-stats-graph","last_synced_at":"2025-10-28T18:30:46.112Z","repository":{"id":92385082,"uuid":"310080966","full_name":"sylhare/docker-stats-graph","owner":"sylhare","description":"🐳 Plot graph and more from docker stats, jmeter","archived":false,"fork":false,"pushed_at":"2024-01-02T16:51:58.000Z","size":1154,"stargazers_count":19,"open_issues_count":1,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-01T17:05:31.166Z","etag":null,"topics":["dockerstats","jmeter","reports"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sylhare.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-11-04T18:08:29.000Z","updated_at":"2024-05-29T08:30:58.000Z","dependencies_parsed_at":"2023-11-28T15:54:30.891Z","dependency_job_id":null,"html_url":"https://github.com/sylhare/docker-stats-graph","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sylhare%2Fdocker-stats-graph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sylhare%2Fdocker-stats-graph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sylhare%2Fdocker-stats-graph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sylhare%2Fdocker-stats-graph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sylhare","download_url":"https://codeload.github.com/sylhare/docker-stats-graph/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238689767,"owners_count":19514089,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dockerstats","jmeter","reports"],"created_at":"2024-10-11T19:33:45.573Z","updated_at":"2025-10-28T18:30:45.693Z","avatar_url":"https://github.com/sylhare.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"Docker Stats Graph\n==================\n\n\n.. |Codecov Badge| image:: https://codecov.io/gh/sylhare/docker-stats-graph/branch/master/graph/badge.svg?token=H7VDPOZJWT\n  :target: https://codecov.io/gh/sylhare/docker-stats-graph\n\n\nTo plot docker stats into graph from multiple dockers.\n\nGet Started\n-----------\n\nRun the ``scrips/generate_data.sh``, this will produce a data.csv that will be used to create the graphs.\n\nThen to use or plot the data:\n\n.. code:: python\n\n   from src.dockerstats import *\n   ds = DockerStats(\"tests/resources/data.csv\")\n   ds.plot_category_all()\n \nSee https://sylhare.github.io/docker-stats-graph/ for a worked example.\n\n\nDocker Stats Info\n-----------------\n\nLet's dig into each of those columns:\n\n- The **CONTAINER** column lists the container IDs.\n- The **CPU %** column reports the host capacity CPU utilization.\n\n  - 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.\n\n- 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.\n\n  - 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.\n\n- The **NET I/O** column displays the total bytes received and transmitted over the network by the corresponding container.\n\n- The **BLOCK I/O** section displays the total bytes written and read to the container file system.\n- The **PIDS** column displays the number of kernel process IDs running inside the corresponding container.\n\nTesting\n-------\n\nTo find out more info about the testing configuration, check out the\n``tox.ini`` file.\nUse the ``dev-requirements.txt`` for libraries only used for tests or dev.\n\n.. code:: bash\n\n   # Run the test suite\n   tox\n   # Run the linter:\n   tox -e lint\n   # Run the coverage on the src module\n   tox -e coverage\n\n\nMisc Notes\n----------\n\n\n-  If you have issue with tox and ``ModuleNotFoundError``, try set\n   ``recreate`` to ``True`` in ``tox.ini``.\n\n\nSources\n-------\n\nSome of the source I use for the `docker stats` command.\n\n- Documentation from docker_\n- Article on analyzing-docker-container-performance-native-tools_\n- Article on monitoring-docker_\n- Datascience Handbook_\n\n.. _analyzing-docker-container-performance-native-tools: https://crate.io/a/analyzing-docker-container-performance-native-tools/\n.. _docker: https://docs.docker.com/engine/reference/commandline/stats/\n.. _monitoring-docker: http://www.zakariaamine.com/2019-12-04/monitoring-docker\n.. _Handbook: https://jakevdp.github.io/PythonDataScienceHandbook/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsylhare%2Fdocker-stats-graph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsylhare%2Fdocker-stats-graph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsylhare%2Fdocker-stats-graph/lists"}