소스 검색

Initialize buffer_size_bytes metric by exponential buckets (#537)

Alexey Remizov 4 년 전
부모
커밋
f351909b99
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      prometheus.go

+ 1 - 0
prometheus.go

@@ -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{