mirror of
https://github.com/prymitive/karma
synced 2026-05-11 03:46:48 +00:00
fix(backend): fix alert history filters
This commit is contained in:
committed by
Łukasz Mierzwa
parent
78dd259c5e
commit
0eec3ef8d4
@@ -1,5 +1,9 @@
|
||||
# Changelog
|
||||
|
||||
## v0.103
|
||||
|
||||
- Fixed a regression in alert history queries.
|
||||
|
||||
## v0.102
|
||||
|
||||
### Fixed
|
||||
|
||||
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user