Skip to content

Commit

Permalink
Merge branch 'gossip-source-metrics' into replace-periodic-gossip-pre…
Browse files Browse the repository at this point in the history
…ference
  • Loading branch information
StephenButtolph authored Nov 28, 2023
2 parents 285b645 + 43f4683 commit 6b79747
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions snow/engine/snowman/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,13 @@ func (m *metrics) Initialize(namespace string, reg prometheus.Registerer) error
&errs,
)

// Register the labels
m.providerSource.WithLabelValues(pullGossipSource)
m.providerSource.WithLabelValues(pushGossipSource)
m.providerSource.WithLabelValues(putGossipSource)
m.providerSource.WithLabelValues(builtSource)
m.providerSource.WithLabelValues(unknownSource)

errs.Add(
reg.Register(m.bootstrapFinished),
reg.Register(m.numRequests),
Expand Down

0 comments on commit 6b79747

Please sign in to comment.