# prometheus/client_python

Prometheus instrumentation library for Python applications

Repository: https://github.com/prometheus/client_python
Canonical: https://ross.abutalabs.com/products/client_python
Language: Python
License: Apache-2.0
License Family: permissive
Topics: instrumentation, python, prometheus, metrics
Last push: 2026-08-13T21:59:29+00:00

## Health v2 (maintenance only)
Score: 92/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 82, longevity 100
- inputs: {"age_days": 4222, "days_push": 20, "days_rel": 40, "gap_med": 85, "n_releases_24m": 10}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4361, forks 874 (observed 2026-08-28T04:08:46.561187+00:00)

## What it is
The official Python client library for Prometheus, providing instrumentation to expose application metrics such as counters, gauges, and histograms. It lets Python applications export metrics in the Prometheus exposition format for scraping.

## Use cases
- instrument a Python web app with Prometheus metrics
- expose counters and histograms from a Python service
- track request latency and error rates in Python
- add custom business metrics to a Python application
- scrape metrics from a Python app with Prometheus

## When to choose
- you run Python services monitored by Prometheus
- you need the official, well-maintained metrics client
- you want standard counter/gauge/histogram/summary metric types

## When to avoid
- you use a non-Python stack
- you need full observability beyond metrics (tracing, logs) in one library
- you push metrics to a non-Prometheus monitoring system

## Facets
- artifact type: library
- maturity: stable
- function: monitoring, logging
- domain: monitoring, backend
- platform: python, cross-platform
- tags: prometheus, metrics, instrumentation, observability, devops

## Member repositories
- prometheus/client_python (main) score 92

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:46.561187+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:21:27.352354+00:00, confidence not recorded.
  - readme: https://github.com/prometheus/client_python (fetched 2026-08-28T04:08:46.561187+00:00, sha d6eccea8fce7)
- Data as of 2026-08-30T08:39:29.467469+00:00.
