unstale

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 init

@unstale/cli on npm

prometheus-client 0.2610 changes

Breaking changes 2

  • A precedence fix prevents exemplars from being allowed on any metric type.

    0.26.0release notes

  • Float exponents greater than or equal to 10 no longer include a leading zero.

    0.26.0release notes

New APIs and options 2

  • TLS version parameters are added to start_wsgi_server.

    0.26.0release notes

  • The Timer context manager exposes its measured duration, so callers can access the elapsed time.

    0.26.0release notes

Fixes and other changes 6

  • Calling clear() on a label-less metric is now a no-op.

    0.26.0release notes

  • Enum arguments are validated before the collector is registered.

    0.26.0release notes

  • Duplicate timeseries now use a specific exception.

    0.26.0release notes

  • The labels() parameters use object instead of Any in their type annotations.

    0.26.0release notes

  • The native histogram sum is parsed as a float.

    0.26.0release notes

  • Unregistering removes nameless collectors from the registry.

    0.26.0release notes

prometheus-client 0.252 changes

Fixes and other changes 2

  • Spaces in grouping key values are handled correctly when using push_to_gateway.

    0.25.0release notes

  • RestrictedRegistry supports MultiProcessCollector.

    0.25.0release notes

prometheus-client 0.248 changes

New APIs and options 4

  • An AIOHTTP exporter was added for integrating Prometheus metrics with AIOHTTP.

    0.24.0release notes

  • A Django exporter was added for integrating Prometheus metrics with Django.

    0.24.0release notes

  • Compression support was added when pushing metrics to the Pushgateway.

    0.24.0release notes

  • Adds a method for deleting metric label sets that match a condition.

    0.24.0release notes

Behavior and default changes 1

  • Registry type annotations for exposition were relaxed, affecting type-checking expectations.

    0.24.0release notes

Fixes and other changes 3

  • Django now passes the correct registry to MultiProcessCollector.

    0.24.1release notes

  • Fixes multiprocess handling so child metric names are not built twice.

    0.24.0release notes

  • The multiprocess collector no longer interleaves histogram metrics.

    0.24.0release notes