A Python package for instrumenting applications with Prometheus metrics. It is the official client maintained for the Prometheus ecosystem.
Overview
Prometheus Python Client is the official library for instrumenting Python applications with Prometheus. Programs can publish metrics in the scrape-friendly format that Prometheus uses for collection.
The distribution is available on PyPI and targets developers who rely on Prometheus for observability. Documentation is maintained on its own site rather than alongside source files.
Version history and release notes appear on the project releases page, which doubles as a changelog when moving between versions.
Teams standardized on Prometheus can use this library as a supported path to export counters, gauges, histograms, and other metric kinds from Python workloads.
Key features
- Official Prometheus Python client
- Application metrics instrumentation
- PyPI package distribution
- Published documentation
- Release history and changelog
Use cases
- Instrumenting Python web services
- Exposing metrics for Prometheus scraping
- Standardizing metrics in Python codebases