From 6b91e0336cdd137022ff0f41a5da09837c3a78d0 Mon Sep 17 00:00:00 2001 From: randyahx Date: Tue, 31 Oct 2023 15:52:38 +0800 Subject: [PATCH] Update metrics.go --- metrics/metrics.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/metrics/metrics.go b/metrics/metrics.go index fb0444e..88a362e 100644 --- a/metrics/metrics.go +++ b/metrics/metrics.go @@ -52,12 +52,12 @@ const ( ) type MetricService struct { - MetricsMap map[string]prometheus.Collector + MetricsMap map[string]prometheus.Metric cfg *config.Config } func NewMetricService(config *config.Config) *MetricService { - ms := make(map[string]prometheus.Collector, 0) + ms := make(map[string]prometheus.Metric, 0) // Monitor gnfdSavedBlockMetric := prometheus.NewGauge(prometheus.GaugeOpts{