prometheus/web
beorn7 2ea8df4734 histogram: Expose #12305
Native histograms without a zero threshold aren't federated properly.

This adds a test to prove the specific failure mode, which is that
histograms with a zero threshold of zero are federated as classic
histograms.

The underlying reason is that the protobuf parser identifies a native
histogram by detecting a zero bucket or by detecting integer buckets.
Therefore, a float histogram with a zero threshold of zero and an
unpopulated zero bucket falls through the cracks (no integer buckets,
no zero bucket).

This commit also addse a test case for the latter.

Signed-off-by: beorn7 <beorn@grafana.com>
2023-07-19 15:29:11 +02:00
..
api/v1 Merge pull request #11905 from charleskorn/api-response-format-extension-point 2023-07-15 22:49:29 +02:00
ui fix some typos (#12498) 2023-06-29 12:28:13 +02:00
federate.go Replace sort.Sort with faster slices.SortFunc 2023-07-10 09:43:45 +00:00
federate_test.go histogram: Expose #12305 2023-07-19 15:29:11 +02:00
web.go Remove Add(0) 2023-06-27 18:10:38 +02:00
web_test.go Added 'limit' query parameter support to /api/v1/status/tsdb endpoint (#12336) 2023-05-22 14:37:07 +02:00