{ "info": { "author": "Marat Mavlyutov", "author_email": "mavlyutov@yandex-team.ru", "bugtrack_url": null, "classifiers": [], "description": "docker-stats\n============\n\ndocker stats wrapper which prints output in json\n\n\nUsage\n=====\n\nInstall from PyPI and run ::\n\n usage: docker-stats [-h] [-a] [container [container ...]]\n\n docker stats, json way\n\n positional arguments:\n container IDs or NAMEs of desired containers\n\n optional arguments:\n -h, --help show this help message and exit\n -a, --all get stats of all available containers\n -n, --normalize try to normalize stats\n\n\nNormalization\n=============\n\nRaw output of docker-stats is smth like this:\n\n.. code-block:: javascript\n\n {\n \"my_container\": {\n \"blkio_stats\": {\n \"io_merged_recursive\": [],\n \"io_queue_recursive\": [],\n \"io_service_bytes_recursive\": [\n {\n \"major\": 253,\n \"minor\": 5,\n \"op\": \"Read\",\n \"value\": 7020544\n },\n {\n \"major\": 253,\n \"minor\": 5,\n \"op\": \"Write\",\n \"value\": 0\n },\n *SNIP*\n ]\n }\n }\n }\n\nAs one can mention, there are an array object inside key :code:`io_service_bytes_recursive` and each element of that array is flattened JSON with key :code:`op` within values. That behaviour may occur in other keys.\ndocker-stats called with key :code:`--normalize` tries to jsonify that to:\n\n.. code-block:: javascript\n\n {\n \"my_container\": {\n \"blkio_stats\": {\n \"io_merged_recursive\": [],\n \"io_queue_recursive\": [],\n \"io_service_bytes_recursive\": {\n \"Read\": {\n \"major\": 253,\n \"minor\": 5,\n \"value\": 7020544\n },\n \"Write\": {\n \"major\": 253,\n \"minor\": 5,\n \"value\": 0\n },\n *SNIP*\n }\n }\n }\n }\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/mavlyutov/docker-stats", "keywords": "", "license": "Apache License, Version 2.0", "maintainer": "", "maintainer_email": "", "name": "docker-stats", "package_url": "https://pypi.org/project/docker-stats/", "platform": "", "project_url": "https://pypi.org/project/docker-stats/", "project_urls": { "Homepage": "https://github.com/mavlyutov/docker-stats" }, "release_url": "https://pypi.org/project/docker-stats/0.0.3/", "requires_dist": null, "requires_python": "", "summary": "docker stats, json way", "version": "0.0.3" }, "last_serial": 2987096, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "02793218827154881692bf60c721ce30", "sha256": "2d63e60c7cd366eb8666e0f52d25d569be3a0b36876bb48a06e4520c04700509" }, "downloads": -1, "filename": "docker-stats-0.0.1.tar.gz", "has_sig": false, "md5_digest": "02793218827154881692bf60c721ce30", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1557, "upload_time": "2016-08-29T12:26:00", "url": "https://files.pythonhosted.org/packages/15/c2/1e5cd7894edb3fc96c0684ff8008a15a206cd6445d94ab73044a11945f52/docker-stats-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "0bebb4d7ef5df9e5b3a343d27387717b", "sha256": "9bc90a2b1b2b5969ecb07101ecfeb58536dfd7f611502748ddf28293b7075875" }, "downloads": -1, "filename": "docker-stats-0.0.2.tar.gz", "has_sig": false, "md5_digest": "0bebb4d7ef5df9e5b3a343d27387717b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2319, "upload_time": "2016-08-31T06:25:02", "url": "https://files.pythonhosted.org/packages/de/19/0a897da41f2402bb7c265167303a1adc09a9db2df6a59ce1c3c91468bd5a/docker-stats-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "e7a82898d3de8ec8f7846df4a010a3aa", "sha256": "6dee5918ff1d2ad7062702c7931c4c16e6771935c7154258c13ca97d6ea62867" }, "downloads": -1, "filename": "docker-stats-0.0.3.tar.gz", "has_sig": false, "md5_digest": "e7a82898d3de8ec8f7846df4a010a3aa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2359, "upload_time": "2017-06-29T10:14:55", "url": "https://files.pythonhosted.org/packages/2e/f1/a93f017ad89dbfea5de15ee640c4f32cec9b708c9eb003f87d82c3c9c417/docker-stats-0.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e7a82898d3de8ec8f7846df4a010a3aa", "sha256": "6dee5918ff1d2ad7062702c7931c4c16e6771935c7154258c13ca97d6ea62867" }, "downloads": -1, "filename": "docker-stats-0.0.3.tar.gz", "has_sig": false, "md5_digest": "e7a82898d3de8ec8f7846df4a010a3aa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2359, "upload_time": "2017-06-29T10:14:55", "url": "https://files.pythonhosted.org/packages/2e/f1/a93f017ad89dbfea5de15ee640c4f32cec9b708c9eb003f87d82c3c9c417/docker-stats-0.0.3.tar.gz" } ] }