prometheus/model/histogram
beorn7 3d7cf4c274 model/histogram: Validate non-negative count and zero bucket
We have always validated that none of the bucket is negative. We
should do the same for the count of observations and the zero bucket.

Note that this was always implied in the protobuf exposition format
because a count or a zero bucket population is ignored if it is not
positive.

Signed-off-by: beorn7 <beorn@grafana.com>
2025-10-01 16:40:41 +02:00
..
float_histogram.go model/histogram: Validate non-negative count and zero bucket 2025-10-01 16:40:41 +02:00
float_histogram_test.go model/histogram: Validate non-negative count and zero bucket 2025-10-01 16:40:41 +02:00
generic.go model/histogram: Validate non-negative count and zero bucket 2025-10-01 16:40:41 +02:00
generic_test.go Merge branch 'main' into nhcb 2024-03-22 14:51:48 +01:00
histogram.go Merge remote-tracking branch 'origin/main' into krajo/native-histogram-schema-validation 2025-09-23 10:51:02 +02:00
histogram_test.go refactor error creation and tests 2025-09-19 09:26:34 +02:00
test_utils.go Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00