VictoriaMetrics/app/vmalert
Hui Wang e8f5dbd598
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>
(cherry picked from commit 0f1ec33892)
2024-08-19 21:41:57 +02:00
..
config app/vmalert: switch from table-driven tests to f-tests 2024-07-12 22:45:50 +02:00
datasource make go vet happy 2024-08-19 21:41:44 +02:00
deployment app/vmalert: include it into the next release 2020-04-28 00:11:41 +03:00
multiarch deployment: build image for vmagent streamaggr benchmark (#6515) 2024-06-24 16:29:14 +02:00
notifier vmalert: add command line flag -notifier.headers (#6751) 2024-08-19 21:41:57 +02:00
remoteread lib/httputils: parse URL before creating HTTP transport (#6820) 2024-08-16 11:34:49 +02:00
remotewrite lib/httputils: parse URL before creating HTTP transport (#6820) 2024-08-16 11:34:49 +02:00
rule app/vmalert: rm unnecessary err check 2024-08-07 09:57:48 +02:00
static app/vmalert: fix links with anchors in vmalert's UI (#6146) 2024-04-22 15:05:23 +02:00
templates app/vmalert: switch from table-driven tests to f-tests 2024-07-12 22:45:50 +02:00
tpl app/vmalert: show on UI groups error after reload config (#4543) 2023-07-06 22:11:36 -07:00
utils app/vmalert: switch from table-driven tests to f-tests 2024-07-12 22:45:50 +02:00
main.go vmalert: allow omitting -replay.timeTo in replay mode, default valu… (#6575) 2024-07-05 09:49:06 +02:00
main_test.go app/vmalert: switch from table-driven tests to f-tests 2024-07-12 22:45:50 +02:00
Makefile vmalert: allow omitting -replay.timeTo in replay mode, default valu… (#6575) 2024-07-05 09:49:06 +02:00
manager.go app/vmalert: fix data race during hot-config reload (#5698) 2024-01-26 22:43:02 +01:00
manager_test.go app/vmalert: switch from table-driven tests to f-tests 2024-07-12 22:45:50 +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:54 +02:00
replay.go vmalert: allow omitting -replay.timeTo in replay mode, default valu… (#6575) 2024-07-05 09:49:06 +02:00
replay_test.go app/vmalert: switch from table-driven tests to f-tests 2024-07-12 22:45:50 +02:00
web.go lib/httpserver: skip basic auth check for additional request paths, which should call httpserver.CheckAuthFlag() 2024-07-16 01:08:41 +02:00
web.qtpl app/vmalert: follow-up after b60dcbe11f 2024-02-20 13:35:02 +01:00
web.qtpl.go app/vmalert: follow-up after b60dcbe11f 2024-02-20 13:35:02 +01:00
web_test.go app/vmalert: switch from table-driven tests to f-tests 2024-07-12 22:45:50 +02:00
web_types.go all: consistently use 'any' instead of 'interface{}' 2024-07-10 00:23:26 +02:00
web_types_test.go app/vmalert: switch from table-driven tests to f-tests 2024-07-12 22:45:50 +02:00

See vmalert docs here.

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