VictoriaMetrics/app/vmalert/notifier
Hui Wang c7fc0d0d2f
vmalert: do not send message to alertmanager when alert has no label … (#6823)
…pair

`alert_relabel_configs` in [notifier
config](https://docs.victoriametrics.com/vmalert/#notifier-configuration-file)
can drop alert labels when used to filter different tenant alert message
to different notifier.
alertmanager would report error like `msg="Failed to validate alerts"
err="at least one label pair required"` in this case, but the rest of
the alerts inside one request would still be valid in alertmanager, so
it's not severe.

(cherry picked from commit ae4d376e41)
2024-09-09 16:06:44 +02:00
..
testdata
alert_test.go vmalert: do not send message to alertmanager when alert has no label … (#6823) 2024-09-09 16:06:44 +02:00
alert.go vmalert: do not send message to alertmanager when alert has no label … (#6823) 2024-09-09 16:06:44 +02:00
alertmanager_request.qtpl vmalert: do not send message to alertmanager when alert has no label … (#6823) 2024-09-09 16:06:44 +02:00
alertmanager_request.qtpl.go vmalert: do not send message to alertmanager when alert has no label … (#6823) 2024-09-09 16:06:44 +02:00
alertmanager_test.go vmalert: do not send message to alertmanager when alert has no label … (#6823) 2024-09-09 16:06:44 +02:00
alertmanager.go lib/httputils: parse URL before creating HTTP transport (#6820) 2024-08-16 11:34:49 +02:00
config_test.go app/vmalert: switch from table-driven tests to f-tests 2024-07-12 22:45:50 +02:00
config_watcher_test.go app/vmalert: switch from table-driven tests to f-tests 2024-07-12 22:45:50 +02:00
config_watcher.go
config.go
faker.go
init_test.go
init.go vmalert: add command line flag -notifier.headers (#6751) 2024-08-19 21:41:57 +02:00
notifier_blackhole_test.go app/vmalert: switch from table-driven tests to f-tests 2024-07-12 22:45:50 +02:00
notifier_blackhole.go
notifier.go
package_test.go