blob: a81c59ab9cda09bbb9dfc459f7b1912d051cf182 [file] [log] [blame]
Dmitry Kalashnik554db632018-05-21 16:19:30 +04001parameters:
2 _param:
3 alerta_environment_label: Development
4 prometheus:
5 server:
6 config:
7 alert:
8 labels_add:
9 environment: ${_param:alerta_environment_label}
10 alert_relabel_configs:
11 - replacement: "aggregated"
12 source_labels: "instance"
13 target_label: "instance"
14 - source_labels: ["host", "job"]
15 target_label: "instance"
16 regex: "([a-zA-Z0-9]+;[a-zA-Z0-9_]+)"
17 - source_labels: ["hostname", "job"]
18 target_label: "instance"
19 regex: "([a-zA-Z0-9]+;[a-zA-Z0-9_]+)"