fix(backend): fix alert history filters

This commit is contained in:
Łukasz Mierzwa
2022-04-14 10:20:51 +01:00
committed by Łukasz Mierzwa
parent 78dd259c5e
commit 0eec3ef8d4
2 changed files with 5 additions and 1 deletions

View File

@@ -1,5 +1,9 @@
# Changelog
## v0.103
- Fixed a regression in alert history queries.
## v0.102
### Fixed

View File

@@ -319,7 +319,7 @@ func countAlerts(uri string, timeout time.Duration, transport http.RoundTripper,
lv[model.LabelName(k)] = model.LabelValue(v)
}
}
q := fmt.Sprintf("changes(ALERTS_FOR_STATE{%s}[1h])", lv)
q := fmt.Sprintf("changes(ALERTS_FOR_STATE%s[1h])", lv)
log.Debug().
Str("uri", uri).
Interface("labels", labels).