mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
ed364a42e3
Before, relabeling for notifier configured via file was supported only for target labels discovered via SD. With this change, new config field `alert_relabel_configs` is introduced for applying relabeling to labels of sent alerts. Signed-off-by: hagen1778 <roman@victoriametrics.com>
16 lines
No EOL
369 B
YAML
16 lines
No EOL
369 B
YAML
consul_sd_configs:
|
|
- server: localhost:8500
|
|
scheme: http
|
|
services:
|
|
- alertmanager
|
|
- server: localhost:8500
|
|
services:
|
|
- consul
|
|
relabel_configs:
|
|
- source_labels: [__meta_consul_tags]
|
|
regex: .*,__scheme__=([^,]+),.*
|
|
replacement: '${1}'
|
|
target_label: __scheme__
|
|
alert_relabel_configs:
|
|
- target_label: "foo"
|
|
replacement: "aaa" |