VictoriaMetrics/app/vmalert/notifier
Roman Khavronenko 35bf5bf688
Vmalert compliance improvements (#2320)
* 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>
2022-03-16 13:22:26 +02:00
..
testdata vmalert: support configuration file for notifiers (#2127) 2022-02-02 23:42:25 +02:00
alert_test.go vmalert: support $externalLabels and $externalURL in templates 2022-02-15 21:13:32 +02:00
alert.go vmalert: support $externalLabels and $externalURL in templates 2022-02-15 21:13:32 +02:00
alertmanager_request.qtpl Support of custom URL path for alert (#560) 2020-06-21 16:33:58 +03:00
alertmanager_request.qtpl.go Support of custom URL path for alert (#560) 2020-06-21 16:33:58 +03:00
alertmanager_test.go vmalert: support configuration file for notifiers (#2127) 2022-02-02 23:42:25 +02:00
alertmanager.go Issue-1824: added flags and different auth types support (#2287) 2022-03-16 12:52:01 +02:00
config_test.go vmalert: support configuration file for notifiers (#2127) 2022-02-02 23:42:25 +02:00
config_watcher_test.go Consul SD - update services on the watcher's start (#2202) 2022-02-21 15:33:33 +02:00
config_watcher.go Consul SD - update services on the watcher's start (#2202) 2022-02-21 15:33:33 +02:00
config.go lib/promscrape: support prometheus-like duration in scrape configs (#2169) 2022-02-11 16:17:51 +02:00
init.go Issue-1824: added flags and different auth types support (#2287) 2022-03-16 12:52:01 +02:00
notifier.go vmalert: support configuration file for notifiers (#2127) 2022-02-02 23:42:25 +02:00
package_test.go Support of custom URL path for alert (#560) 2020-06-21 16:33:58 +03:00
template_func.go Vmalert compliance improvements (#2320) 2022-03-16 13:22:26 +02:00