aioprometheus
A Prometheus Python client library for asyncio-based applications
Decision gist · record as of 2026-08-14
Yes, with conditions. aioprometheus is stable and production-ready for asyncio applications that need Prometheus integration. Install it if you are building or maintaining an asyncio-based service (FastAPI, Starlette, Quart, or standalone) and need metrics collection. The dormant maintenance status is not a blocker for stable use, but verify compatibility with your Prometheus server version and Python 3.8+ support meets your needs. No known security vulnerabilities.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python >=3.8.0.
- ASGI middleware extras (starlette, quart, aiohttp) are optional but needed for framework-specific features.
- Low install friction with only two runtime dependencies (orjson and quantile-python).
License · maintenance · safety
MIT (permissive) — MIT license (permissive) means you can use, modify, and distribute aioprometheus with minimal restrictions, including in commercial applications. No copyleft obligations.
last release 2023-12-27 (961 days) · last repo commit 2024-08-21 · 190 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 162,259 downloads/mo, #10,611 on PyPI
Alternatives
Verify before relying
pip install aioprometheus
from aioprometheus import Counter
events_counter = Counter("events_counter", "Total number of events.")
events_counter.inc({"kind": "event A"})- Whether quantile-python and orjson versions are pinned or have known compatibility constraints
- Performance characteristics under high-volume metric collection in production asyncio workloads
- Whether dormant maintenance status affects compatibility with recent Prometheus server versions
What it is and what it does
aioprometheus is a Prometheus client library designed for Python asyncio applications. It lets you instrument your code by creating metrics (counters, gauges, histograms, etc.) and then expose them to Prometheus or compatible monitoring systems. The library includes a default collector registry and supports both text export and push-gateway modes.
For web frameworks, aioprometheus provides ASGI middleware that automatically tracks request counts, response codes, and exceptions in FastAPI, Starlette, and Quart applications. For standalone asyncio services, you can use the HTTP Service to expose metrics on a dedicated endpoint. The core library has minimal dependencies; framework-specific features require optional extras (aiohttp, starlette, quart).
Use it for
- Add Prometheus metrics to a FastAPI or Starlette application via ASGI middleware to track HTTP request volume and response codes
- Instrument a long-running asyncio service (e.g., worker, daemon) with custom counters and expose them via an HTTP metrics endpoint
- Push metrics from a distributed asyncio process to a Prometheus Push Gateway for scrape-less collection
- Track application events and performance in asyncio-based microservices without blocking the event loop
- Monitor custom business logic (e.g., job counts, queue depth) alongside standard HTTP metrics in async web apps
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, with conditions.
aioprometheus is stable and production-ready for asyncio applications that need Prometheus integration. Install it if you are building or maintaining an asyncio-based service (FastAPI, Starlette, Quart, or standalone) and need metrics collection. The dormant maintenance status is not a blocker for stable use, but verify compatibility with your Prometheus server version and Python 3.8+ support meets your needs. No known security vulnerabilities.
Install
aioprometheus on PyPI
Before you install
Low install friction with only two runtime dependencies (orjson and quantile-python). Maintenance is dormant—last release was 961 days ago—but the project remains archived=false with a recent commit (2024-08-21) and is marked Production/Stable. Suitable for stable, long-running deployments where active development is not expected.
Requires Python >=3.8.0. ASGI middleware extras (starlette, quart, aiohttp) are optional but needed for framework-specific features.
License in practice
MIT license (permissive) means you can use, modify, and distribute aioprometheus with minimal restrictions, including in commercial applications. No copyleft obligations.
Quickstart
pip install aioprometheus
from aioprometheus import Counter
events_counter = Counter("events_counter", "Total number of events.")
events_counter.inc({"kind": "event A"})
Verify before relying
- Whether quantile-python and orjson versions are pinned or have known compatibility constraints
- Performance characteristics under high-volume metric collection in production asyncio workloads
- Whether dormant maintenance status affects compatibility with recent Prometheus server versions
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.8.0 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesorjsonquantile-python |
| Maintenance | Dormant 961 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 162,259 / month, #10,611 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python ModulesTopic :: System :: MonitoringTyping :: Typed |
Evidence: aioprometheus-23.12.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “prometheus metrics asyncio”
- aioprometheusA Prometheus client library for asyncio applications that collects…
- prometheus-asyncAdds async/await support to Prometheus metrics collection for asyncio…
- fan-toolsA collection of internal testing utilities, async helpers, and…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also prometheus-api-client · starlette-exporter · starlette-prometheus · prometheus-fastapi-instrumentator · aiodogstatsd · opentelemetry-instrumentation-asgi · prometheus-async · aioauth · timing-asgi · aiohttp-asgi-connector