1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-09-16 09:36:18 +02:00

Initialize buffer_size_bytes metric by exponential buckets (#537)

This commit is contained in:
Alexey Remizov
2021-02-08 14:20:52 +03:00
committed by GitHub
parent 06d81959d3
commit f351909b99

View File

@@ -65,6 +65,7 @@ func initPrometheus() {
Namespace: conf.PrometheusNamespace,
Name: "buffer_size_bytes",
Help: "A histogram of the buffer size in bytes.",
Buckets: prometheus.ExponentialBuckets(1024, 2, 14),
}, []string{"type"})
prometheusBufferDefaultSize = prometheus.NewGaugeVec(prometheus.GaugeOpts{