api/metrics/metrics.go: Fix returning wrong counter (#2126)

Signed-off-by: meichuntao <mei.chuntao@zte.com.cn>
This commit is contained in:
meichuntao 2019-12-04 18:26:13 +08:00 committed by Max Inden
parent 89db909017
commit 5cb556e4b2

View File

@ -51,4 +51,4 @@ func (a *Alerts) Firing() prometheus.Counter { return a.firing }
func (a *Alerts) Resolved() prometheus.Counter { return a.resolved }
// Invalid returns a counter of invalid alerts.
func (a *Alerts) Invalid() prometheus.Counter { return a.firing }
func (a *Alerts) Invalid() prometheus.Counter { return a.invalid }