From f53b24765d14ccf77a5dda8270d3d1d8908dc5b6 Mon Sep 17 00:00:00 2001 From: Simon Pasquier Date: Wed, 4 Apr 2018 10:38:17 +0200 Subject: [PATCH] api: initialize alerts_received_total labels (#1310) --- api/api.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/api.go b/api/api.go index aa9ceb08..c3f133a7 100644 --- a/api/api.go +++ b/api/api.go @@ -56,6 +56,9 @@ var ( ) func init() { + numReceivedAlerts.WithLabelValues("firing") + numReceivedAlerts.WithLabelValues("resolved") + prometheus.Register(numReceivedAlerts) prometheus.Register(numInvalidAlerts) }