1
0
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:
Simon Pasquier
2018-04-04 10:38:17 +02:00
committed by stuart nelson
parent cb169a5ec6
commit f53b24765d

View File

@@ -56,6 +56,9 @@ var (
)
func init() {
numReceivedAlerts.WithLabelValues("firing")
numReceivedAlerts.WithLabelValues("resolved")
prometheus.Register(numReceivedAlerts)
prometheus.Register(numInvalidAlerts)
}