mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-15 16:30:55 +01:00
35bf5bf688
* 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_test.go | ||
alert.go | ||
alertmanager_request.qtpl | ||
alertmanager_request.qtpl.go | ||
alertmanager_test.go | ||
alertmanager.go | ||
config_test.go | ||
config_watcher_test.go | ||
config_watcher.go | ||
config.go | ||
init.go | ||
notifier.go | ||
package_test.go | ||
template_func.go |