Don't interleave histogram metrics in multi-process collector by cjwatson · Pull Request #1148 · prometheus/client_python
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: prometheus#1147 Signed-off-by: Colin Watson <cjwatson@debian.org>
approved these changes Nov 26, 2025
cjwatson
deleted the
interleaved-multiprocess-histogram-metrics
branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters