VictoriaMetrics/app/vmalert
Hui Wang 0f1ec33892
vmalert: add command line flag -notifier.headers (#6751)
to allow configuring additional headers in each request to the
corresponding notifier.
Other flags like `-datasource.headers`, `-remoteWrite.headers` already
use `^^` as delimiter, it's consistent to use it in `-notifier.headers`
as well.


related https://github.com/VictoriaMetrics/VictoriaMetrics/issues/3260
vmalert can integrate with alertmanager that supports multi-tenant by
adding tenantID header`X-Scope-OrgID` in requests.
In multitenancy, vmalert can also filter alerts which send to different
notifier addresses(or with different header settings) using
`alert_relabel_configs`.

Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/3260

---------

Signed-off-by: hagen1778 <roman@victoriametrics.com>
Co-authored-by: hagen1778 <roman@victoriametrics.com>
2024-08-19 21:40:57 +02:00
..
config app/vmalert: switch from table-driven tests to f-tests 2024-07-12 22:41:11 +02:00
datasource make go vet happy 2024-08-19 21:15:33 +02:00
deployment app/vmalert: include it into the next release 2020-04-28 00:10:12 +03:00
multiarch deployment: build image for vmagent streamaggr benchmark (#6515) 2024-06-24 16:28:50 +02:00
notifier vmalert: add command line flag -notifier.headers (#6751) 2024-08-19 21:40:57 +02:00
remoteread lib/httputils: parse URL before creating HTTP transport (#6820) 2024-08-16 11:32:04 +02:00
remotewrite lib/httputils: parse URL before creating HTTP transport (#6820) 2024-08-16 11:32:04 +02:00
rule app/vmalert: rm unnecessary err check 2024-08-07 09:09:24 +02:00
static app/vmalert: fix links with anchors in vmalert's UI (#6146) 2024-04-22 15:02:10 +02:00
templates app/vmalert: switch from table-driven tests to f-tests 2024-07-12 22:41:11 +02:00
tpl app/vmalert: show on UI groups error after reload config (#4543) 2023-07-03 14:59:52 +02:00
utils app/vmalert: switch from table-driven tests to f-tests 2024-07-12 22:41:11 +02:00
main.go vmalert: allow omitting -replay.timeTo in replay mode, default valu… (#6575) 2024-07-05 09:27:34 +02:00
main_test.go app/vmalert: switch from table-driven tests to f-tests 2024-07-12 22:41:11 +02:00
Makefile vmalert: allow omitting -replay.timeTo in replay mode, default valu… (#6575) 2024-07-05 09:27:34 +02:00
manager.go app/vmalert: fix data race during hot-config reload (#5698) 2024-01-26 22:42:21 +01:00
manager_test.go app/vmalert: switch from table-driven tests to f-tests 2024-07-12 22:41:11 +02:00
README.md all: replace old https://docs.victoriametrics.com/vmalert.html url with the new one - https://docs.victoriametrics.com/vmalert/ 2024-04-18 01:44:12 +02:00
replay.go vmalert: allow omitting -replay.timeTo in replay mode, default valu… (#6575) 2024-07-05 09:27:34 +02:00
replay_test.go app/vmalert: switch from table-driven tests to f-tests 2024-07-12 22:41:11 +02:00
web.go lib/httpserver: skip basic auth check for additional request paths, which should call httpserver.CheckAuthFlag() 2024-07-16 01:00:45 +02:00
web.qtpl app/vmalert: follow-up after b60dcbe11f 2024-02-20 13:07:05 +01:00
web.qtpl.go app/vmalert: follow-up after b60dcbe11f 2024-02-20 13:07:05 +01:00
web_test.go app/vmalert: switch from table-driven tests to f-tests 2024-07-12 22:41:11 +02:00
web_types.go all: consistently use 'any' instead of 'interface{}' 2024-07-10 00:20:37 +02:00
web_types_test.go app/vmalert: switch from table-driven tests to f-tests 2024-07-12 22:41:11 +02:00

See vmalert docs here.

vmalert docs can be edited at docs/vmalert.md.