Skip to content

Commit

Permalink
Merge branch 'track-block-request-origin' into gossip-source-metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenButtolph committed Nov 28, 2023
2 parents 3234dde + bcdb9e9 commit 43f4683
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 43f4683

Please sign in to comment.