Skip to content

Commit f53b247

Browse files
simonpasquierstuartnelson3
authored andcommitted
api: initialize alerts_received_total labels (prometheus#1310)
1 parent cb169a5 commit f53b247

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

api/api.go

+3
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ var (
5656
)
5757

5858
func init() {
59+
numReceivedAlerts.WithLabelValues("firing")
60+
numReceivedAlerts.WithLabelValues("resolved")
61+
5962
prometheus.Register(numReceivedAlerts)
6063
prometheus.Register(numInvalidAlerts)
6164
}

0 commit comments

Comments
 (0)