mirror of
https://github.com/prometheus/alertmanager
synced 2024-12-25 15:42:18 +00:00
api/metrics/metrics.go: Fix returning wrong counter (#2126)
Signed-off-by: meichuntao <mei.chuntao@zte.com.cn>
This commit is contained in:
parent
89db909017
commit
5cb556e4b2
@ -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 }
|
||||
|
Loading…
Reference in New Issue
Block a user