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