From ce0da0066408c7123060d988935c7c7bea013f93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mi=C5=82kowski?= Date: Mon, 6 Feb 2023 12:40:06 +0100 Subject: [PATCH] Fix/validator metrics name (#86) * fix metrics naming * Remove unused duplicated metric --- pkg/validators/metrics.go | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/pkg/validators/metrics.go b/pkg/validators/metrics.go index 3f2a419f..abfed591 100644 --- a/pkg/validators/metrics.go +++ b/pkg/validators/metrics.go @@ -51,21 +51,14 @@ func (rm *StoreManager) AttachMetrics(m *metrics.Metrics) { } type RegisterMetrics struct { - Timing *prometheus.HistogramVec RegistrationsCacheHits *prometheus.CounterVec } func (r *Register) initMetrics() { - r.m.Timing = prometheus.NewHistogramVec(prometheus.HistogramOpts{ - Namespace: "dreamboat", - Subsystem: "relay", - Name: "timing", - Help: "Duration of requests per function", - }, []string{"function", "type"}) r.m.RegistrationsCacheHits = prometheus.NewCounterVec(prometheus.CounterOpts{ Namespace: "dreamboat", - Subsystem: "relayprocess", + Subsystem: "validators", Name: "registrationCache", Help: "cache hit/miss", }, []string{"result"}) @@ -73,6 +66,5 @@ func (r *Register) initMetrics() { } func (r *Register) AttachMetrics(m *metrics.Metrics) { - m.Register(r.m.Timing) m.Register(r.m.RegistrationsCacheHits) }