mirror of
https://github.com/prometheus/alertmanager.git
synced 2026-02-05 15:45:34 +01:00
api: initialize alerts_received_total labels (#1310)
This commit is contained in:
committed by
stuart nelson
parent
cb169a5ec6
commit
f53b24765d
@@ -56,6 +56,9 @@ var (
|
||||
)
|
||||
|
||||
func init() {
|
||||
numReceivedAlerts.WithLabelValues("firing")
|
||||
numReceivedAlerts.WithLabelValues("resolved")
|
||||
|
||||
prometheus.Register(numReceivedAlerts)
|
||||
prometheus.Register(numInvalidAlerts)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user