mirror of
https://github.com/prometheus/alertmanager
synced 2025-01-11 16:29:30 +00:00
Merge pull request #2200 from pracucci/fix-dispatcher-metrics
Fixed dispatcher metrics registration
This commit is contained in:
commit
99e5cbff40
@ -53,7 +53,11 @@ func NewDispatcherMetrics(r prometheus.Registerer) *DispatcherMetrics {
|
||||
},
|
||||
),
|
||||
}
|
||||
prometheus.MustRegister(m.aggrGroups, m.processingDuration)
|
||||
|
||||
if r != nil {
|
||||
r.MustRegister(m.aggrGroups, m.processingDuration)
|
||||
}
|
||||
|
||||
return &m
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user