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
1 changed files with 3 additions and 0 deletions

View File

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