mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
fb6eab03a2
* vmalert: add support for `sortByLabel` template function * vmalert: update API according to Prometheus conformance program The changes to the API, field names and URL path has been made according to the Prometheus specification for `alert_generator` https://github.com/prometheus/compliance/blob/main/alert_generator/specification.md * vmalert: fix the timestamp of the evaluated rules The timestamp used for alert's `EndsAt` was calculated before sending the notification. While the correct way is to use the timestamp taken right before rules evaluation. * vmalert: add `-datasource.queryTimeAlignment` flag The flag is supposed to provide ability to disable `time` param alignment when executing rules. By default, this flag is enabled, so it remains backward compatible. The flag was introduced to achieve better compatibility with Prometheus behaviour according to https://github.com/prometheus/compliance/blob/main/alert_generator/specification.md Signed-off-by: hagen1778 <roman@victoriametrics.com> |
||
---|---|---|
.. | ||
testdata | ||
alert.go | ||
alert_test.go | ||
alertmanager.go | ||
alertmanager_request.qtpl | ||
alertmanager_request.qtpl.go | ||
alertmanager_test.go | ||
config.go | ||
config_test.go | ||
config_watcher.go | ||
config_watcher_test.go | ||
init.go | ||
notifier.go | ||
package_test.go | ||
template_func.go |