{ "info": { "author": "chaostoolkit Team", "author_email": "sh@defuze.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: Freely Distributable", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: Implementation", "Programming Language :: Python :: Implementation :: CPython" ], "description": "# chaostoolkit-prometheus\n\n[![Build Status](https://travis-ci.org/chaostoolkit/chaostoolkit-prometheus.svg?branch=master)](https://travis-ci.org/chaostoolkit/chaostoolkit-prometheus)\n\n[Prometheus][prometheus] support for the [Chaos Toolkit][chaostoolkit].\n\n[prometheus]: https://prometheus.io/\n[chaostoolkit]: http://chaostoolkit.org/\n\n## Install\n\nTo be used from your experiment, this package must be installed in the Python\nenvironment where [chaostoolkit][] already lives.\n\n[chaostoolkit]: https://github.com/chaostoolkit/chaostoolkit\n\n```\n$ pip install chaostoolkit-prometheus\n```\n\n## Usage\n\nTo use this package, you must create have access to a Prometheus instance via\nHTTP and be allowed to connect to it.\n\nThis package only exports probes to query for some aspects of your system as\nmonitored by Prometheus.\n\nHere is an example of querying Prometheus at a given moment\n\n```json\n{\n \"type\": \"probe\",\n \"name\": \"fetch-cpu-just-2mn-ago\",\n \"provider\": {\n \"type\": \"python\",\n \"module\": \"chaosprometheus.probes\",\n \"func\": \"query\",\n \"arguments\": {\n \"query\": \"process_cpu_seconds_total{job='websvc'}\",\n \"when\": \"2 minutes ago\"\n }\n }\n}\n```\n\nYou can also ask for an interval as follows:\n\n```json\n{\n \"type\": \"probe\",\n \"name\": \"fetch-cpu-over-interval\",\n \"provider\": {\n \"type\": \"python\",\n \"module\": \"chaosprometheus.probes\",\n \"func\": \"query_interval\",\n \"arguments\": {\n \"query\": \"process_cpu_seconds_total{job='websvc'}\",\n \"start\": \"2 minutes ago\",\n \"end\": \"now\",\n \"step\": 5\n }\n }\n}\n```\n\nIn both cases, the probe returns the [JSON payload as-is][api] from Prometheus\nor raises an exception when an error is met.\n\n[api]: https://prometheus.io/docs/querying/api/\n\nThe result is not further process and should be found in the generated report\nof the experiment run.\n\n## Contribute\n\nIf you wish to contribute more functions to this package, you are more than\nwelcome to do so. Please, fork this project, make your changes following the\nusual [PEP 8][pep8] code style, sprinkling with tests and submit a PR for\nreview.\n\n[pep8]: https://pycodestyle.readthedocs.io/en/latest/\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://chaostoolkit.org", "keywords": "", "license": "Apache License Version 2.0", "maintainer": "", "maintainer_email": "", "name": "chaostoolkit-prometheus", "package_url": "https://pypi.org/project/chaostoolkit-prometheus/", "platform": "", "project_url": "https://pypi.org/project/chaostoolkit-prometheus/", "project_urls": { "Homepage": "http://chaostoolkit.org" }, "release_url": "https://pypi.org/project/chaostoolkit-prometheus/0.3.0/", "requires_dist": [ "chaostoolkit-lib (>=0.8.0)", "dateparser", "logzero", "maya", "pycodestyle", "requests" ], "requires_python": ">=3.5.*", "summary": "Chaos Toolkit Prometheus support", "version": "0.3.0" }, "last_serial": 3423556, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "e3e8416a1b35e5c461f8868ccb72bedb", "sha256": "d32b32c875bfa3b1f373b226fc013b4e176f68b6590086b644f709167b38ce91" }, "downloads": -1, "filename": "chaostoolkit_prometheus-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "e3e8416a1b35e5c461f8868ccb72bedb", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5.*", "size": 5482, "upload_time": "2017-10-16T20:36:59", "url": "https://files.pythonhosted.org/packages/d6/79/657d76898afa07882101d48fa508cf8c5ca25599f40d2e14222f996088b6/chaostoolkit_prometheus-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a0ee81a91dc4744f7cc364c4397e4ea6", "sha256": "c3218dd994225c22c7f8f5f87dc009c330de7e8ebea963d8f4ce538d5e6ef791" }, "downloads": -1, "filename": "chaostoolkit-prometheus-0.1.0.tar.gz", "has_sig": false, "md5_digest": "a0ee81a91dc4744f7cc364c4397e4ea6", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5.*", "size": 3374, "upload_time": "2017-10-16T20:37:00", "url": "https://files.pythonhosted.org/packages/44/be/fbcbd1c30b03215649a4f65a1e17a946421bea11a01e96400cfd04678252/chaostoolkit-prometheus-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "96c409ac0069b3395ef531aaddd443cb", "sha256": "b5c6622917846ca8e4da494ca52cf48e8c807afbdeace582da47d0ede0fb700b" }, "downloads": -1, "filename": "chaostoolkit_prometheus-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "96c409ac0069b3395ef531aaddd443cb", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5.*", "size": 5540, "upload_time": "2017-12-07T20:06:41", "url": "https://files.pythonhosted.org/packages/e9/4d/6318554aaf9269f5920edb901df30f0f1956256aea887b393609ae9cd6e2/chaostoolkit_prometheus-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fd3598c1a1c0083ffd33eccf634f02ef", "sha256": "4f712c3fd68daa5e1ccb33108995f31c0357a7f18552b8c0de388d785ba8fa7b" }, "downloads": -1, "filename": "chaostoolkit-prometheus-0.2.0.tar.gz", "has_sig": false, "md5_digest": "fd3598c1a1c0083ffd33eccf634f02ef", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5.*", "size": 8022, "upload_time": "2017-12-07T20:06:42", "url": "https://files.pythonhosted.org/packages/ed/3b/182fbdb55839a321ba5de2b1c608ea9982e95eb5a7bfa1da071f9b678ecb/chaostoolkit-prometheus-0.2.0.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "40246dd71cf0d227c0919ab320d4664a", "sha256": "82f1e784bfefc40a69fe9e7c63cce031e40f8bf58d57968d63ed3b82bb24ee5b" }, "downloads": -1, "filename": "chaostoolkit_prometheus-0.3.0-py3-none-any.whl", "has_sig": false, "md5_digest": "40246dd71cf0d227c0919ab320d4664a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5.*", "size": 5603, "upload_time": "2017-12-17T19:27:32", "url": "https://files.pythonhosted.org/packages/62/02/19aa3d7c03d3dce89a6c737dbcccf7880a3f9a586cb5f6ac1eef931669d0/chaostoolkit_prometheus-0.3.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "be43797f6ea414f04233628b0cd2fada", "sha256": "c9fa5230bf8396479744080a6e7c3e3666e34027ec8eaf1c5060038d49168191" }, "downloads": -1, "filename": "chaostoolkit-prometheus-0.3.0.tar.gz", "has_sig": false, "md5_digest": "be43797f6ea414f04233628b0cd2fada", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5.*", "size": 8146, "upload_time": "2017-12-17T19:27:33", "url": "https://files.pythonhosted.org/packages/a8/22/785d0bf375f2ab5c06201e4957bc544b757b0ba9d0035b05759d56992f42/chaostoolkit-prometheus-0.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "40246dd71cf0d227c0919ab320d4664a", "sha256": "82f1e784bfefc40a69fe9e7c63cce031e40f8bf58d57968d63ed3b82bb24ee5b" }, "downloads": -1, "filename": "chaostoolkit_prometheus-0.3.0-py3-none-any.whl", "has_sig": false, "md5_digest": "40246dd71cf0d227c0919ab320d4664a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5.*", "size": 5603, "upload_time": "2017-12-17T19:27:32", "url": "https://files.pythonhosted.org/packages/62/02/19aa3d7c03d3dce89a6c737dbcccf7880a3f9a586cb5f6ac1eef931669d0/chaostoolkit_prometheus-0.3.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "be43797f6ea414f04233628b0cd2fada", "sha256": "c9fa5230bf8396479744080a6e7c3e3666e34027ec8eaf1c5060038d49168191" }, "downloads": -1, "filename": "chaostoolkit-prometheus-0.3.0.tar.gz", "has_sig": false, "md5_digest": "be43797f6ea414f04233628b0cd2fada", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5.*", "size": 8146, "upload_time": "2017-12-17T19:27:33", "url": "https://files.pythonhosted.org/packages/a8/22/785d0bf375f2ab5c06201e4957bc544b757b0ba9d0035b05759d56992f42/chaostoolkit-prometheus-0.3.0.tar.gz" } ] }