Loki: Add one additional bucket to `rate_store_stream_shards` (#7856)

**What this PR does / why we need it**:
Add one additional bucket (value=1) to the `rate_store_stream_shards`.
By jumping from 0 to 2 we can't distinguish between streams that were
minimally sharded (shards=2) to non-sharded ones (shards=1).
pull/7857/head
Dylan Guedes 3 years ago committed by GitHub
parent 85392a9728
commit 2e496ddff2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      pkg/distributor/ratestore_metrics.go

@ -44,7 +44,7 @@ func newRateStoreMetrics(reg prometheus.Registerer) *ratestoreMetrics {
Namespace: "loki",
Name: "rate_store_stream_shards",
Help: "The distribution of number of shards for a single stream reported by ingesters during a sync operation.",
Buckets: []float64{0, 2, 4, 8, 16, 32, 64, 128},
Buckets: []float64{0, 1, 2, 4, 8, 16, 32, 64, 128},
}),
maxStreamRate: promauto.With(reg).NewGauge(prometheus.GaugeOpts{
Namespace: "loki",

Loading…
Cancel
Save