Skip to content

Commit

Permalink
improve metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
gi8lino committed Jun 13, 2024
1 parent 89ede63 commit 3120b9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/metrics/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ func init() {
// NewMetrics creates and initializes a new Metrics instance with all relevant metrics registered.
func NewMetrics() *Metrics {
reg := prometheus.NewRegistry()
_ = reg.Register(HeartbeatStatus) // Register the global metric
_ = reg.Register(TotalHeartbeats) // Register the new metric
reg.MustRegister(HeartbeatStatus)
reg.MustRegister(TotalHeartbeats)

return &Metrics{
Registry: reg,
Expand Down

0 comments on commit 3120b9d

Please sign in to comment.