Prometheus Python Client
The official Python client for Prometheus.
Installation
pip install prometheus-client
This package can be found on PyPI.
Documentation
Documentation is available on https://prometheus.github.io/client_python
client_python is a free, open source monitoring & observability project written in Python and released under Apache-2.0. It has 4,385 GitHub stars, 905 forks and 150 open issues, and was last pushed 4 days ago. On this registry it ranks #103 of 270 tracked projects in Monitoring & Observability, with 5 head-to-head comparisons available. It gained 7 stars over the last 30 tracked days.
client_python is the official Prometheus instrumentation library for Python applications, letting Python code expose metrics that a Prometheus server collects, and it is aimed at Python developers and reliability engineers who need their services measurable inside a Prometheus monitoring stack.
client_python is the official Python client maintained under the Prometheus project on GitHub. It is written in Python, licensed under Apache-2.0, and carries the topics instrumentation, metrics, prometheus, and python, which places it in the Infrastructure & Operations / Monitoring & Observability category of this registry. The repository has 4,375 stars, 876 forks, and 150 open issues, with the most recent push recorded on 2026-09-15. Its purpose is instrumentation: adding the code that produces metrics from inside a running Python process rather than measuring it from outside.
The concrete problem it solves is that a Python application has no built-in way to report its own operational state to Prometheus. Without a client library, a team has to hand-roll its own metrics plumbing and its own export format, which is exactly the kind of application-specific work this library removes. Instead of writing bespoke instrumentation per service, developers install the official client and emit metrics through an interface that the Prometheus ecosystem already understands. The README frames the library as the official client for Prometheus and points to a separate documentation site and to PyPI as the distribution channel.
prometheus-client using pip install prometheus-client.prometheus_client at https://pypi.python.org/pypi/prometheus_client.https://prometheus.github.io/client_python, separate from the repository README.Install from PyPI with pip install prometheus-client, then follow the usage documentation at https://prometheus.github.io/client_python. No Docker image, compose file, or hosted option is described in the README.
The facts provide no list of paid products this project replaces, and no competing Python metrics libraries are named either, so on the evidence available it stands alone in this registry: the official Prometheus client for Python, distributed freely under Apache-2.0.
This is a client library, so there is no database, storage layer, or mail service to operate; the operational dependency is a Prometheus server somewhere that scrapes the metrics it emits, and without one the instrumentation produces nothing useful. Teams not running Prometheus, or running a different metrics backend, should look elsewhere rather than adopt it for compatibility reasons alone. The honest weakness here is documentation depth in the repository itself: the README excerpt is sparse, offers no usage example, and defers nearly everything to the external docs site, so the registry entry alone is not enough to get a service instrumented.
The official Python client for Prometheus.
pip install prometheus-client
This package can be found on PyPI.
Documentation is available on https://prometheus.github.io/client_python
client_python is open source under the Apache-2.0 licence. There is no licence fee and no seat count — you can self-host it or, where the project offers one, pay a vendor for a managed version instead.
Prometheus instrumentation library for Python applications
client_python is primarily written in Python. Its source is publicly available at https://github.com/prometheus/client_python, and it has 4,385 GitHub stars.