{ "info": { "author": "Emplocity", "author_email": "zbigniew.siciarz@emplocity.pl", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: POSIX", "Operating System :: Unix", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: Implementation :: CPython", "Topic :: Utilities" ], "description": "========\nOverview\n========\n\n.. start-badges\n\n.. list-table::\n :stub-columns: 1\n\n * - docs\n - |docs|\n * - tests\n - | |travis|\n |\n * - package\n - | |version| |wheel| |supported-versions| |supported-implementations|\n | |commits-since|\n.. |docs| image:: https://readthedocs.org/projects/nameko-prometheus/badge/?style=flat\n :target: https://readthedocs.org/projects/nameko-prometheus\n :alt: Documentation Status\n\n.. |travis| image:: https://api.travis-ci.org/emplocity/nameko-prometheus.svg?branch=master\n :alt: Travis-CI Build Status\n :target: https://travis-ci.org/emplocity/nameko-prometheus\n\n.. |version| image:: https://img.shields.io/pypi/v/nameko-prometheus.svg\n :alt: PyPI Package latest release\n :target: https://pypi.org/project/nameko-prometheus\n\n.. |wheel| image:: https://img.shields.io/pypi/wheel/nameko-prometheus.svg\n :alt: PyPI Wheel\n :target: https://pypi.org/project/nameko-prometheus\n\n.. |supported-versions| image:: https://img.shields.io/pypi/pyversions/nameko-prometheus.svg\n :alt: Supported versions\n :target: https://pypi.org/project/nameko-prometheus\n\n.. |supported-implementations| image:: https://img.shields.io/pypi/implementation/nameko-prometheus.svg\n :alt: Supported implementations\n :target: https://pypi.org/project/nameko-prometheus\n\n.. |commits-since| image:: https://img.shields.io/github/commits-since/emplocity/nameko-prometheus/v0.1.svg\n :alt: Commits since latest release\n :target: https://github.com/emplocity/nameko-prometheus/compare/v0.1...master\n\n\n\n.. end-badges\n\n``nameko-prometheus`` is a dependency for the nameko_ microservice framework\nwhich allows application metrics collection with Prometheus_.\n\n.. _nameko: https://www.nameko.io/\n.. _Prometheus: https://prometheus.io/\n\n\nFeatures\n========\n\n - automatic collection of request latency metrics for RPC and HTTP endpoints\n - HTTP endpoint exposing metrics to be scraped by Prometheus\n\n\nInstallation\n============\n\n::\n\n pip install nameko-prometheus\n\nYou can also install the in-development version with::\n\n pip install https://github.com/emplocity/nameko-prometheus/archive/master.zip\n\n\nUsage\n=====\n\n.. code-block:: python\n\n from nameko.rpc import rpc\n from nameko.web.handlers import http\n from nameko_prometheus import PrometheusMetrics\n\n\n class MyService:\n metrics = PrometheusMetrics(prefix=\"myservice\")\n\n @rpc\n def say_hello(self):\n return \"Hello!\"\n\n @http(\"GET\", \"/\")\n def index(self, request):\n return \"OK\"\n\n @http(\"GET\", \"/metrics\")\n def serve_metrics(self, request):\n return self.metrics.serve(request)\n\n\nDocumentation\n=============\n\n\nhttps://nameko-prometheus.readthedocs.io/\n\n\nDevelopment\n===========\n\nTo run the all tests run::\n\n tox\n\nNote, to combine the coverage data from all the tox environments run:\n\n.. list-table::\n :widths: 10 90\n :stub-columns: 1\n\n - - Windows\n - ::\n\n set PYTEST_ADDOPTS=--cov-append\n tox\n\n - - Other\n - ::\n\n PYTEST_ADDOPTS=--cov-append tox\n\n\nDevelopment roadmap\n===================\n\nThings we'd like to have in the future:\n\n - automatic registration of ``/metrics`` HTTP endpoint\n - decorator to exclude specific methods from tracing\n\n\nAuthors\n=======\n\n``nameko-prometheus`` is developed and maintained by `Emplocity`_.\n\n.. _Emplocity: https://emplocity.com/\n\n\nLicense\n=======\n\nThis work is released under the Apache 2.0 license.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/emplocity/nameko-prometheus", "keywords": "", "license": "Apache-2.0", "maintainer": "", "maintainer_email": "", "name": "nameko-prometheus", "package_url": "https://pypi.org/project/nameko-prometheus/", "platform": "", "project_url": "https://pypi.org/project/nameko-prometheus/", "project_urls": { "Changelog": "https://nameko-prometheus.readthedocs.io/en/latest/changelog.html", "Documentation": "https://nameko-prometheus.readthedocs.io/", "Homepage": "https://github.com/emplocity/nameko-prometheus", "Issue Tracker": "https://github.com/emplocity/nameko-prometheus/issues" }, "release_url": "https://pypi.org/project/nameko-prometheus/0.1/", "requires_dist": [ "nameko (<3,>=2)", "prometheus-client (<1,>=0.7)" ], "requires_python": ">=3.6.*", "summary": "Prometheus metrics collector and exporter for nameko microservice framework", "version": "0.1" }, "last_serial": 5917648, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "c15f1d249bcc3ca47ee6f177e2b997aa", "sha256": "3bc7f96416979ba98e58cd5c98f19b1d8dcd4cb92513fcd3124a58dd974b8367" }, "downloads": -1, "filename": "nameko_prometheus-0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c15f1d249bcc3ca47ee6f177e2b997aa", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.6.*", "size": 7004, "upload_time": "2019-10-02T12:26:37", "url": "https://files.pythonhosted.org/packages/3f/fa/31f777e4aa1a9f1aa4b573cdc44c05a210c590db63484c682b246ac5eaae/nameko_prometheus-0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3e0318ed94f1e5569bd8a02f251e134b", "sha256": "ed1aa573ef44abf55c150870ad433d08a3aa288b2e8210bc7eea7bb783933f0e" }, "downloads": -1, "filename": "nameko-prometheus-0.1.tar.gz", "has_sig": false, "md5_digest": "3e0318ed94f1e5569bd8a02f251e134b", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6.*", "size": 13666, "upload_time": "2019-10-02T12:26:40", "url": "https://files.pythonhosted.org/packages/af/f7/c80933d21b2c1029dcae099f8532ae2853d31ee83ac282d8a279d59ae252/nameko-prometheus-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c15f1d249bcc3ca47ee6f177e2b997aa", "sha256": "3bc7f96416979ba98e58cd5c98f19b1d8dcd4cb92513fcd3124a58dd974b8367" }, "downloads": -1, "filename": "nameko_prometheus-0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c15f1d249bcc3ca47ee6f177e2b997aa", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.6.*", "size": 7004, "upload_time": "2019-10-02T12:26:37", "url": "https://files.pythonhosted.org/packages/3f/fa/31f777e4aa1a9f1aa4b573cdc44c05a210c590db63484c682b246ac5eaae/nameko_prometheus-0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3e0318ed94f1e5569bd8a02f251e134b", "sha256": "ed1aa573ef44abf55c150870ad433d08a3aa288b2e8210bc7eea7bb783933f0e" }, "downloads": -1, "filename": "nameko-prometheus-0.1.tar.gz", "has_sig": false, "md5_digest": "3e0318ed94f1e5569bd8a02f251e134b", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6.*", "size": 13666, "upload_time": "2019-10-02T12:26:40", "url": "https://files.pythonhosted.org/packages/af/f7/c80933d21b2c1029dcae099f8532ae2853d31ee83ac282d8a279d59ae252/nameko-prometheus-0.1.tar.gz" } ] }