{ "info": { "author": "Zhang Yong", "author_email": "yongzhang1@foxmail.com", "bugtrack_url": null, "classifiers": [], "description": "# python-grpc-prometheus\n\n\"Build\n\n\n## ChangeLog\n\n\n## Installation\n\nInstallation from PyPI: \n```\npip install python-grpc-prometheus\n```\n\n## Usage\n\nCheck the available interceptors in the source code. This example uses the `PromServerInterceptor`.\nUsage example:\n```python\nimport grpc\nfrom concurrent.futures import ThreadPoolExecutor\n# Importing this whole package so that I can use prometheus_client.start_http_server()\n# instead of just start_http_server(), which is not too descriptive. But it's your call.\nimport prometheus_client\nfrom python_grpc_prometheus.prometheus_server_interceptor import PromServerInterceptor\n\n\n# Add the required interceptor(s) where you create your grpc server, e.g.\npsi = PromServerInterceptor()\nserver = grpc.server(ThreadPoolExecutor(max_workers=10), interceptors=(psi,))\n# Start the http server where prometheus can fetch the data from. Use whatever listen port you prefer.\nprometheus_client.start_http_server(8000)\n# ...\n```\n\nNow, when running your application, you can check http://localhost:8000 in a browser.\nNote: the `grpc_*` metrics will just show commented out (with their descriptions) until your application actually receives gRPC calls.\n\n\n## TODO\n\n- add stream support", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/zhyon404/python-grpc-prometheus", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "python-grpc-prometheus", "package_url": "https://pypi.org/project/python-grpc-prometheus/", "platform": "", "project_url": "https://pypi.org/project/python-grpc-prometheus/", "project_urls": { "Homepage": "https://github.com/zhyon404/python-grpc-prometheus" }, "release_url": "https://pypi.org/project/python-grpc-prometheus/0.2.0/", "requires_dist": null, "requires_python": "", "summary": "Python gRPC Prometheus Interceptors", "version": "0.2.0" }, "last_serial": 4715895, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "770681775ec21e7d9d3d1ff129fbf385", "sha256": "2d92c7dfaf465f681fa44af19e9e5b203a9cad891a4ca3613dc19e3be2309091" }, "downloads": -1, "filename": "python_grpc_prometheus-0.1.1.tar.gz", "has_sig": false, "md5_digest": "770681775ec21e7d9d3d1ff129fbf385", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2953, "upload_time": "2018-09-03T03:54:37", "url": "https://files.pythonhosted.org/packages/20/47/2d5aec28158bd7b7aeec5d98396456a8203dbb629cced826b20d19b0a5dd/python_grpc_prometheus-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "820589b1f6590aeeff330ced2286cc46", "sha256": "eb94216aeb541d4e2acf5fb1678e90252216dfa00badd53d8fce6aaeced98d20" }, "downloads": -1, "filename": "python_grpc_prometheus-0.1.2.tar.gz", "has_sig": false, "md5_digest": "820589b1f6590aeeff330ced2286cc46", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3496, "upload_time": "2018-09-30T18:41:25", "url": "https://files.pythonhosted.org/packages/bf/fa/cf64956c746e16af44ce8a9e9bd587cd35d7f35b5ca1f19e91157505679b/python_grpc_prometheus-0.1.2.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "c9201a6256bd7bda6a58eb479038839c", "sha256": "2f159e050778369539be33a02417131c6b4e63b24c06a0c8879d598daecbfc6e" }, "downloads": -1, "filename": "python_grpc_prometheus-0.1.4.tar.gz", "has_sig": false, "md5_digest": "c9201a6256bd7bda6a58eb479038839c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3855, "upload_time": "2019-01-07T07:55:20", "url": "https://files.pythonhosted.org/packages/52/82/58c29014e2b810a3ea427b14165b1789ba6d98e902c5f4d804f57aedb673/python_grpc_prometheus-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "24c49ae7bde40204fa19e17f790776d5", "sha256": "ca08676316c5d388b3010a3dd3a906feb2e9a0af196a7f829916403958020fce" }, "downloads": -1, "filename": "python_grpc_prometheus-0.1.5.tar.gz", "has_sig": false, "md5_digest": "24c49ae7bde40204fa19e17f790776d5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3903, "upload_time": "2019-01-15T03:50:59", "url": "https://files.pythonhosted.org/packages/e2/82/d2c8a2edf3788b9254968e3acb7696b32be5d521501c025e8e2ae1e83a49/python_grpc_prometheus-0.1.5.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "ced7bedf887f71ad41e9ea9d8555d765", "sha256": "9dcc3bec8d3b5ced4381b8b13c224d3c499b6957e09b1edd4dbea6832e80f7d3" }, "downloads": -1, "filename": "python_grpc_prometheus-0.2.0.tar.gz", "has_sig": false, "md5_digest": "ced7bedf887f71ad41e9ea9d8555d765", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4402, "upload_time": "2019-01-19T14:47:19", "url": "https://files.pythonhosted.org/packages/71/b8/e799163d7bb76d6ad2b8362a218f0e2e0044ebc415870261978d23fc4847/python_grpc_prometheus-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ced7bedf887f71ad41e9ea9d8555d765", "sha256": "9dcc3bec8d3b5ced4381b8b13c224d3c499b6957e09b1edd4dbea6832e80f7d3" }, "downloads": -1, "filename": "python_grpc_prometheus-0.2.0.tar.gz", "has_sig": false, "md5_digest": "ced7bedf887f71ad41e9ea9d8555d765", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4402, "upload_time": "2019-01-19T14:47:19", "url": "https://files.pythonhosted.org/packages/71/b8/e799163d7bb76d6ad2b8362a218f0e2e0044ebc415870261978d23fc4847/python_grpc_prometheus-0.2.0.tar.gz" } ] }