VictoriaMetrics/app/vmalert/notifier
Roman Khavronenko 9f578e389c vmalert: add function "query", "first" and "value" to alert templates functions (#960)
The commit adds a support for template function `query`,
`first` and `value`. The function `query` executes
a MetricsQL query for active alerts. In vmalert we
update templates on every evaluation for active alerts
to keep them up to date. With `query` func it may become
a perf issue since it will fire a query on every execution.
We should keep it in mind for now.

https://github.com/VictoriaMetrics/VictoriaMetrics/issues/539
2020-12-14 20:12:16 +02:00
..
alert_test.go vmalert: add function "query", "first" and "value" to alert templates functions (#960) 2020-12-14 20:12:16 +02:00
alert.go vmalert: add function "query", "first" and "value" to alert templates functions (#960) 2020-12-14 20:12:16 +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 all: typo fix: exptected -> expected 2020-07-02 18:06:21 +03:00
alertmanager.go all: consistently return text-based HTTP responses with charset=utf-8 2020-11-13 10:30:21 +02:00
init.go app/vmalert: do not pring description for all the flags on config errors 2020-10-08 13:35:46 +03:00
notifier.go vmalert: cleanup and restructure of code to improve maintainability (#471) 2020-05-11 14:35:55 +03:00
package_test.go Support of custom URL path for alert (#560) 2020-06-21 16:33:58 +03:00
template_func.go vmalert: add function "query", "first" and "value" to alert templates functions (#960) 2020-12-14 20:12:16 +02:00