api: initialize alerts_received_total labels (#1310)
This commit is contained in:
parent
cb169a5ec6
commit
f53b24765d
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue