From c5df5c9a95458a65a298ffa4df6925a6e0297cab Mon Sep 17 00:00:00 2001 From: spectvtor <97673937+spectvtor@users.noreply.github.com> Date: Wed, 25 May 2022 11:36:04 +0400 Subject: [PATCH] fix alert relabeling (#2633) --- app/vmalert/notifier/config_watcher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/vmalert/notifier/config_watcher.go b/app/vmalert/notifier/config_watcher.go index 1bc116229..297eb06ba 100644 --- a/app/vmalert/notifier/config_watcher.go +++ b/app/vmalert/notifier/config_watcher.go @@ -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) }