From ce3ff290a314d18218530b71cadee4e5e6a06b93 Mon Sep 17 00:00:00 2001 From: Jian Xiao <99709935+jianoaix@users.noreply.github.com> Date: Mon, 22 Apr 2024 10:55:18 -0700 Subject: [PATCH] Addressing feedback in the operator registration/quorum metrics (#504) --- node/metrics.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node/metrics.go b/node/metrics.go index a03aa3f1df..dcaf72414d 100644 --- a/node/metrics.go +++ b/node/metrics.go @@ -65,7 +65,7 @@ func NewMetrics(eigenMetrics eigenmetrics.Metrics, reg *prometheus.Registry, log prometheus.GaugeOpts{ Namespace: Namespace, Name: "registered_quorums", - Help: "the quorums the DA node is registered", + Help: "the quorums the DA node is registered, breakdown by quorum's ID and the type of information about the quorum. The type can be `stake_share`, representing the operator's stake share (in basis points); and `rank`, representing the operator's ranking (1 being the highest) by stake share within the quorum", }, []string{"quorum", "type"}, ), @@ -172,7 +172,7 @@ func (g *Metrics) AcceptBatches(status string, batchSize uint64) { } func (g *Metrics) collectOnchainMetrics() { - ticker := time.NewTicker(time.Duration(uint64(g.onchainMetricsInterval))) + ticker := time.NewTicker(time.Duration(g.onchainMetricsInterval) * time.Second) defer ticker.Stop() // 3 chain RPC calls in each cycle.