Skip to content

Commit

Permalink
Addressing feedback in the operator registration/quorum metrics (#504)
Browse files Browse the repository at this point in the history
  • Loading branch information
jianoaix authored Apr 22, 2024
1 parent 4c3d53a commit ce3ff29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions node/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
),
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit ce3ff29

Please sign in to comment.