fix: histogram could measure up to 10 seconds of consumption lag, needs exponential buckets (#16897)

pull/16905/head
George Robinson 2 months ago committed by GitHub
parent 276e510923
commit 3986b86ea0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      pkg/limits/ingest_limits.go

@ -81,7 +81,7 @@ func newMetrics(reg prometheus.Registerer) *metrics {
NativeHistogramBucketFactor: 1.1,
NativeHistogramMinResetDuration: 1 * time.Hour,
NativeHistogramMaxBucketNumber: 100,
Buckets: prometheus.DefBuckets,
Buckets: prometheus.ExponentialBuckets(0.125, 2, 18),
}),
kafkaReadBytesTotal: promauto.With(reg).NewCounter(prometheus.CounterOpts{
Namespace: constants.Loki,

Loading…
Cancel
Save