fix alert relabeling (#2633)

This commit is contained in:
spectvtor 2022-05-25 11:36:04 +04:00 committed by Aliaksandr Valialkin
parent df9ffa6854
commit c5df5c9a95
No known key found for this signature in database
GPG key ID: A72BEC6CD3D0DED1

View file

@ -166,7 +166,7 @@ func (cw *configWatcher) start() error {
if err != nil {
return fmt.Errorf("failed to parse labels for target %q: %s", target, err)
}
notifier, err := NewAlertManager(address, cw.genFn, cw.cfg.HTTPClientConfig, cw.cfg.parsedRelabelConfigs, cw.cfg.Timeout.Duration())
notifier, err := NewAlertManager(address, cw.genFn, cw.cfg.HTTPClientConfig, cw.cfg.parsedAlertRelabelConfigs, cw.cfg.Timeout.Duration())
if err != nil {
return fmt.Errorf("failed to init alertmanager for addr %q: %s", address, err)
}