From 73f7b0b88dad9de4853acd087e37be8715ba8b36 Mon Sep 17 00:00:00 2001 From: Tianlalu233 <42634872+Tianlalu233@users.noreply.github.com> Date: Sun, 18 Aug 2024 22:08:48 +0800 Subject: [PATCH] fix can not use custom buckets in Prometheus histogram type --- pumps/prometheus.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pumps/prometheus.go b/pumps/prometheus.go index 764919d75..f277e6985 100644 --- a/pumps/prometheus.go +++ b/pumps/prometheus.go @@ -334,7 +334,7 @@ func (pm *PrometheusMetric) InitVec() error { prometheus.HistogramOpts{ Name: pm.Name, Help: pm.Help, - Buckets: buckets, + Buckets: bkts, }, pm.Labels, )