[chore] - update buffered file writer metric (#2740)

* missed one

* add comment
This commit is contained in:
ahrav 2024-04-25 08:17:32 -07:00 committed by GitHub
parent 8ceeb5d5a1
commit 8d3404804e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -29,11 +29,12 @@ var (
Help: "Total number of times data was written to disk by the BufferedFileWriter.",
})
// The first bucket is greater than the default threshold to avoid a bucket with a zero value.
fileSizeHistogram = promauto.NewHistogram(prometheus.HistogramOpts{
Namespace: common.MetricsNamespace,
Subsystem: common.MetricsSubsystem,
Name: "file_size_bytes",
Help: "Sizes of files created by the BufferedFileWriter.",
Buckets: prometheus.ExponentialBuckets(defaultThreshold, 2, 4),
Buckets: prometheus.ExponentialBuckets(defaultThreshold*2, 4, 5),
})
)