blob: 63ed20abd7f65e9a933d793c1027b6374b9b7578 [file] [log] [blame]
Dmitry Kalashnik554db632018-05-21 16:19:30 +04001parameters:
Ildar Svetlov67d44242018-12-03 13:15:42 +04002 _param:
3 alerta_environment_label: ${_param:cluster_domain}
Dmitry Kalashnik554db632018-05-21 16:19:30 +04004 prometheus:
5 server:
6 config:
Dmitry Kalashnik554db632018-05-21 16:19:30 +04007 alert_relabel_configs:
Ildar Svetlov67d44242018-12-03 13:15:42 +04008 - replacement: "${_param:alerta_environment_label}"
9 source_labels: "environment"
10 target_label: "environment"
Dmitry Kalashnik554db632018-05-21 16:19:30 +040011 - replacement: "aggregated"
12 source_labels: "instance"
13 target_label: "instance"
Dmitry Kalashnik8f232cd2018-06-08 13:02:10 +040014 - source_labels: "host"
15 target_label: "instance"
16 regex: "(.+)"
17 - source_labels: "job"
18 target_label: "instance"
19 regex: "(.+)"
Dmitry Kalashnik554db632018-05-21 16:19:30 +040020 - source_labels: ["host", "job"]
21 target_label: "instance"
Dmitry Kalashnik8f232cd2018-06-08 13:02:10 +040022 regex: "(.+;.+)"
Dmitry Kalashnik554db632018-05-21 16:19:30 +040023 - source_labels: ["hostname", "job"]
24 target_label: "instance"
Ildar Svetlov59e09d52018-08-01 13:22:53 +040025 regex: "(.+;.+)"