prometheus/storage
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
..
remote model/histogram: Validate non-negative count and zero bucket 2025-10-01 16:40:41 +02:00
buffer.go chore: enable unused-receiver rule from revive 2025-08-04 09:43:33 +00:00
buffer_test.go chore: enable unused-receiver rule from revive 2025-08-04 09:43:33 +00:00
errors.go Fix appendable: check whether last val was a histogram (#14613) 2024-08-07 15:02:59 +02:00
errors_test.go Fix appendable: check whether last val was a histogram (#14613) 2024-08-07 15:02:59 +02:00
fanout.go TSDB: Fix some edge cases when OOO is enabled (#14710) 2024-10-23 17:34:28 +02:00
fanout_test.go chore: enable unused-receiver rule from revive 2025-08-04 09:43:33 +00:00
generic.go Add warnings (and annotations) to PromQL query results (#12152) 2023-09-14 18:57:31 +02:00
interface.go Revert "feat(storage): add new CombinedAppender interface and compatibility layer" 2025-08-29 08:16:39 +01:00
interface_test.go Fix: chunkenc.MockSeriesIterator 2024-08-30 16:44:36 +02:00
lazy.go Add warnings (and annotations) to PromQL query results (#12152) 2023-09-14 18:57:31 +02:00
memoized_iterator.go storage: add `AtT` method to `MemoizedSeriesIterator` 2024-07-15 14:09:02 +10:00
memoized_iterator_test.go storage: add `AtT` method to `MemoizedSeriesIterator` 2024-07-15 14:09:02 +10:00
merge.go Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
merge_test.go Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
noop.go Pass limit param as hint to storage.Querier 2024-06-20 09:47:38 -07:00
secondary.go Pass limit param as hint to storage.Querier 2024-06-20 09:47:38 -07:00
series.go chore: enable unused-receiver rule from revive 2025-08-04 09:43:33 +00:00
series_test.go Fix linting issues found by golangci-lint v2.0.2 (#16368) 2025-05-03 19:05:13 +02:00