Comparing v0.23.1...v0.24.0 · prometheus/client_python
Commits on Sep 19, 2025
-
Add an AIOHTTP exporter (#1139)
* Always run the asgi tests Since the client now requires a minimum of Python 3.9, we don't need to have this feature gate in place any more Signed-off-by: Lexi Robinson <lexi@lexi.org.uk> * Add an AIOHTTP exporter Unfortunately the AIOHTTP library doesn't support ASGI and apparently has no plans to do so which makes the ASGI exporter not suitable for anyone using it to run their python server. Where possible this commit follows the existing ASGI implementation and runs the same tests for consistency. Signed-off-by: Lexi Robinson <lexi@lexi.org.uk> --------- Signed-off-by: Lexi Robinson <lexi@lexi.org.uk>
Commits on Oct 28, 2025
-
Add remove_matching() method for metric label deletion (#1121)
* Add remove_matching() method for metric label deletion Signed-off-by: Hazel <hazel@hazel.localdomain> * Rename function name, and the parameter's name Signed-off-by: Hazel <hazel@hazel.localdomain> * Make remove_by_labels() consistent with remove(): return None Signed-off-by: Hazel <hazel@hazel.localdomain> --------- Signed-off-by: Hazel <hazel@hazel.localdomain> Co-authored-by: Hazel <hazel@hazel.localdomain>
-
Add support for Python 3.14 (#1142)
* Add Python version 3.14 to CircleCI config Signed-off-by: Naoyuki Sano <nsano@ae.em-net.ne.jp> * Update tox.ini Signed-off-by: Naoyuki Sano <nsano@ae.em-net.ne.jp> * Add support for Python 3.14 in pyproject.toml Signed-off-by: Naoyuki Sano <nsano@ae.em-net.ne.jp> * Update pyproject.toml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Naoyuki Sano <nsano@ae.em-net.ne.jp> --------- Signed-off-by: Naoyuki Sano <nsano@ae.em-net.ne.jp> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Commits on Nov 26, 2025
-
Don't interleave histogram metrics in multi-process collector (#1148)
The OpenMetrics exposition format requires that samples for a given Metric (i.e. metric name and label set) are not interleaved, but the way that the multi-process collector handled accumulating histogram metrics could end up interleaving them. Restructure it slightly to guarantee that all the samples for a given Metric are kept together. Fixes: #1147 Signed-off-by: Colin Watson <cjwatson@debian.org>
-
Relax registry type annotations for exposition (#1149)
* Turn Collector into a Protocol We require Python >= 3.9 now, so there's no reason to avoid this any more. Signed-off-by: Colin Watson <cjwatson@debian.org> * Relax registry type annotations for exposition Anything with a suitable `collect` method will do: for instance, it's sometimes useful to be able to define a class whose `collect` method yields all metrics from a registry whose names have a given prefix, and such a class doesn't need to inherit from `CollectorRegistry`. Signed-off-by: Colin Watson <cjwatson@debian.org> --------- Signed-off-by: Colin Watson <cjwatson@debian.org>
Commits on Dec 12, 2025
-
Added compression support in pushgateway (#1144)
* feat(): Added compression support in pushgateway Signed-off-by: ritesh-avesha <ritesh@aveshasystems.com> * fix(): Incorporated changes for PR review comments Signed-off-by: ritesh-avesha <ritesh@aveshasystems.com> * fix(): Incorporated changes for PR review comments, lint issues Signed-off-by: ritesh-avesha <ritesh@aveshasystems.com> * fix(): lint issues Signed-off-by: ritesh-avesha <ritesh@aveshasystems.com> --------- Signed-off-by: ritesh-avesha <ritesh@aveshasystems.com>