mirror of
https://github.com/prometheus/prometheus
synced 2024-12-29 02:02:17 +00:00
aa82fe198f
So far, `ValidateHistogram` would not detect if the count did not include the count in the zero bucket. This commit fixes the problem and updates all the tests that have been undetected offenders so far. Note that this problem would only ever create false negatives, so we never falsely rejected to store a histogram because of it. On the other hand, `ValidateFloatHistogram` has been to strict with the count being at least as large as the sum of the counts in all the buckets. Float precision issues could create false positives here, see products of PromQL evaluations, it's actually quite hard to put an upper limit no the floating point imprecision. Users could produce the weirdest expressions, maxing out float precision problems. Therefore, this commit simply removes that particular check from `ValidateFloatHistogram`. Signed-off-by: beorn7 <beorn@grafana.com> |
||
---|---|---|
.. | ||
azuread | ||
otlptranslator | ||
chunked_test.go | ||
chunked.go | ||
client_test.go | ||
client.go | ||
codec_test.go | ||
codec.go | ||
ewma.go | ||
intern_test.go | ||
intern.go | ||
max_timestamp.go | ||
metadata_watcher_test.go | ||
metadata_watcher.go | ||
queue_manager_test.go | ||
queue_manager.go | ||
read_handler_test.go | ||
read_handler.go | ||
read_test.go | ||
read.go | ||
storage_test.go | ||
storage.go | ||
write_handler_test.go | ||
write_handler.go | ||
write_test.go | ||
write.go |