prometheus/web
beorn7 d16b314b72 Histogram: Do not render empty buckets in JSON output
While empty buckets can make sense in the internal representation (by
joining spans that would otherwise need more overhead for separate
representation), there are no spans in the JSON rendering. Therefore,
the JSON should not contain any empty buckets, since any buckets not
included in the output counts as empty anyway.

This changes both the inefficient MarshalJSON implementation as well
as the jsoniter implementation.

Signed-off-by: beorn7 <beorn@grafana.com>
2022-05-03 18:18:55 +02:00
..
api/v1 Histogram: Do not render empty buckets in JSON output 2022-05-03 18:18:55 +02:00
ui UI: stabilize dependencies and environment (#10517) 2022-04-05 11:49:22 +02:00
federate.go storage: Rename ...Values methods to At... (#9889) 2021-11-29 16:23:04 +05:30
federate_test.go web: prepare TestFederation_NotReady test for parallel execution 2021-11-10 09:40:43 +01:00
web.go Allow replacing the stats struct before rendering JSON 2022-03-21 23:49:17 +01:00
web_test.go remove old UI (#10208) 2022-02-02 11:26:11 +01:00