Comment float histogram as well

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
pull/14287/head
György Krajcsovits 2024-06-18 15:22:03 +02:00
parent c309f50ee7
commit 79020b1e85
1 changed files with 2 additions and 0 deletions

View File

@ -378,6 +378,8 @@ func (app *bucketLimitAppender) AppendHistogram(ref storage.SeriesRef, lset labe
}
}
if fh != nil {
// Return with an early error if the histogram has too many buckets and the
// schema is not exponential, in which case we can't reduce the resolution.
if len(fh.PositiveBuckets)+len(fh.NegativeBuckets) > app.limit && !histogram.IsExponentialSchema(fh.Schema) {
return 0, errBucketLimit
}