{"id":15633161,"url":"https://github.com/hynek/prometheus-async","last_synced_at":"2025-05-15T12:05:36.189Z","repository":{"id":38339835,"uuid":"43549530","full_name":"hynek/prometheus-async","owner":"hynek","description":"Async Python helpers for the official prometheus-client.","archived":false,"fork":false,"pushed_at":"2025-05-05T17:27:36.000Z","size":423,"stargazers_count":173,"open_issues_count":1,"forks_count":15,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-05-05T18:44:17.049Z","etag":null,"topics":["async","asyncio","metrics","prometheus","prometheus-exporter","python","twisted"],"latest_commit_sha":null,"homepage":"https://prometheus-async.readthedocs.io/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hynek.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"hynek","tidelift":"pypi/prometheus-async"}},"created_at":"2015-10-02T11:35:14.000Z","updated_at":"2025-05-05T17:27:38.000Z","dependencies_parsed_at":"2024-06-28T09:02:31.508Z","dependency_job_id":"427465df-614d-412d-afea-00a1817c1ac7","html_url":"https://github.com/hynek/prometheus-async","commit_stats":{"total_commits":273,"total_committers":10,"mean_commits":27.3,"dds":"0.28205128205128205","last_synced_commit":"0fda06cb171984767bbbc7419352d74a9ab0c28f"},"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hynek%2Fprometheus-async","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hynek%2Fprometheus-async/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hynek%2Fprometheus-async/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hynek%2Fprometheus-async/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hynek","download_url":"https://codeload.github.com/hynek/prometheus-async/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254337613,"owners_count":22054253,"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":["async","asyncio","metrics","prometheus","prometheus-exporter","python","twisted"],"created_at":"2024-10-03T10:47:12.118Z","updated_at":"2025-05-15T12:05:31.171Z","avatar_url":"https://github.com/hynek.png","language":"Python","funding_links":["https://github.com/sponsors/hynek","https://tidelift.com/funding/github/pypi/prometheus-async","https://tidelift.com/?utm_source=lifter\u0026utm_medium=referral\u0026utm_campaign=hynek"],"categories":[],"sub_categories":[],"readme":"# prometheus-async\n\n\u003ca href=\"https://prometheus-async.readthedocs.io/en/stable/\"\u003e\u003cimg src=\"https://img.shields.io/badge/Docs-Read%20The%20Docs-black\" alt=\"Documentation\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/hynek/prometheus-async/blob/main/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-Apache--2.0-C06524\" alt=\"License: Apache 2.0\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://pypi.org/project/prometheus-async/\"\u003e\u003cimg src=\"https://img.shields.io/pypi/v/prometheus-async\" alt=\"PyPI version\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://pepy.tech/project/prometheus-async\"\u003e\u003cimg src=\"https://static.pepy.tech/personalized-badge/prometheus-async?period=month\u0026amp;units=international_system\u0026amp;left_color=grey\u0026amp;right_color=blue\u0026amp;left_text=Downloads%20/%20Month\" alt=\"Downloads / Month\" /\u003e\u003c/a\u003e\n\n\u003c!-- teaser-begin --\u003e\n\n*prometheus-async* adds support for asynchronous frameworks to the official [Python client](https://github.com/prometheus/client_python) for the [Prometheus](https://prometheus.io/) metrics and monitoring system.\n\nCurrently [*asyncio*](https://docs.python.org/3/library/asyncio.html) and [Twisted](https://twisted.org) are supported.\n\nIt works by wrapping the metrics from the official client:\n\n```python\nimport asyncio\n\nfrom aiohttp import web\nfrom prometheus_client import Histogram\nfrom prometheus_async.aio import time\n\nREQ_TIME = Histogram(\"req_time_seconds\", \"time spent in requests\")\n\n@time(REQ_TIME)\nasync def req(request):\n      await asyncio.sleep(1)\n      return web.Response(body=b\"hello\")\n```\n\n\nEven for *synchronous* applications, the metrics exposure methods can be useful since they are more powerful than the one shipped with the official client.\nFor that, helper functions have been added that run them in separate threads (*asyncio*-only).\n\nThe source code is hosted on [GitHub](https://github.com/hynek/prometheus-async) and the documentation on [Read the Docs](https://prometheus-async.readthedocs.io/).\n\n\n## Credits\n\n*prometheus-async* is written and maintained by [Hynek Schlawack](https://hynek.me/).\n\nThe development is kindly supported by my employer [Variomedia AG](https://www.variomedia.de/), *prometheus-async*’s [Tidelift subscribers][TL], and all my amazing [GitHub Sponsors](https://github.com/sponsors/hynek).\n\n\n## *prometheus-async* for Enterprise\n\nAvailable as part of the [Tidelift Subscription][TL].\n\nThe maintainers of *prometheus-async* and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source packages you use to build your applications.\nSave time, reduce risk, and improve code health, while paying the maintainers of the exact packages you use.\n\n[TL]: https://tidelift.com/?utm_source=lifter\u0026utm_medium=referral\u0026utm_campaign=hynek\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhynek%2Fprometheus-async","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhynek%2Fprometheus-async","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhynek%2Fprometheus-async/lists"}