pypi / prometheus-client
prometheus-client
What changed in prometheus-client 0.24 to 0.26, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
2 breaking6 new APIs and options1 behavior and defaults11 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initprometheus-client 0.2610 changes
Breaking changes 2
A precedence fix prevents exemplars from being allowed on any metric type.
Float exponents greater than or equal to 10 no longer include a leading zero.
New APIs and options 2
TLS version parameters are added to start_wsgi_server.
The Timer context manager exposes its measured duration, so callers can access the elapsed time.
Fixes and other changes 6
Calling clear() on a label-less metric is now a no-op.
Enum arguments are validated before the collector is registered.
Duplicate timeseries now use a specific exception.
The labels() parameters use object instead of Any in their type annotations.
The native histogram sum is parsed as a float.
Unregistering removes nameless collectors from the registry.
prometheus-client 0.252 changes
Fixes and other changes 2
Spaces in grouping key values are handled correctly when using push_to_gateway.
RestrictedRegistry supports MultiProcessCollector.
prometheus-client 0.248 changes
New APIs and options 4
An AIOHTTP exporter was added for integrating Prometheus metrics with AIOHTTP.
A Django exporter was added for integrating Prometheus metrics with Django.
Compression support was added when pushing metrics to the Pushgateway.
Adds a method for deleting metric label sets that match a condition.
Behavior and default changes 1
Registry type annotations for exposition were relaxed, affecting type-checking expectations.
Fixes and other changes 3
Django now passes the correct registry to MultiProcessCollector.
Fixes multiprocess handling so child metric names are not built twice.
The multiprocess collector no longer interleaves histogram metrics.