VictoriaMetrics/app/vmalert/config/testdata
Roman Khavronenko 0afd14a14a
vmalert: introduce additional HTTP URL params per-group configuration (#1892)
* vmalert: introduce additional HTTP URL params per-group configuration

The new group field `params` allows to configure custom HTTP URL params
per each group. These params will be applied to every request before
executing rule's expression. Hot config reload is also supported.

Field `extra_filter_labels` was deprecated in favour of `params` field.
vmalert will print deprecation log message if config file contains
the deprecated field.

`params` fields are supported by both Prometheus and Graphite datasource types.

Signed-off-by: hagen1778 <roman@victoriametrics.com>

* vmalert: provide more examples for `params` field

Signed-off-by: hagen1778 <roman@victoriametrics.com>

* vmalert: set higher priority for `params` setting

If there would be a conflict between URL params set in `datasource.url` flag
and params in group definition the latter will have higher priority.

Signed-off-by: hagen1778 <roman@victoriametrics.com>
2021-12-02 14:45:08 +02:00
..
dir app/vmalert: remove rule.type config, since it doesnt play well with the upcoming default tenants for -clusterMode 2021-11-05 19:52:32 +02:00
kube-good.rules app/vmalert: accept days, weeks and years in for: part of config like Prometheus does 2020-10-08 20:13:15 +03:00
rules0-bad.rules vmalert: Add recording rules support. (#519) 2020-06-01 13:46:37 +03:00
rules0-good.rules vmalert: introduce additional HTTP URL params per-group configuration (#1892) 2021-12-02 14:45:08 +02:00
rules1-bad.rules Graphite vmalert wip (#112) 2021-02-01 15:05:32 +02:00
rules1-good.rules vmalert: Add recording rules support. (#519) 2020-06-01 13:46:37 +03:00
rules2-good.rules vmalert: introduce additional HTTP URL params per-group configuration (#1892) 2021-12-02 14:45:08 +02:00
rules3-good.rules app/vmalert: remove rule.type config, since it doesnt play well with the upcoming default tenants for -clusterMode 2021-11-05 19:52:32 +02:00
rules4-good.rules vmalert: allow groups with empty rules for compatibility reasons (#1742) 2021-10-25 12:15:02 +03:00
rules-query-good.rules changes vmalert query function (#1307) 2021-05-21 13:55:43 +03:00
rules-replay-good.rules vmalert: support rules backfilling (aka replay) (#1358) 2021-06-09 12:20:38 +03:00