blob: a81c59ab9cda09bbb9dfc459f7b1912d051cf182 [file] [log] [blame]
parameters:
_param:
alerta_environment_label: Development
prometheus:
server:
config:
alert:
labels_add:
environment: ${_param:alerta_environment_label}
alert_relabel_configs:
- replacement: "aggregated"
source_labels: "instance"
target_label: "instance"
- source_labels: ["host", "job"]
target_label: "instance"
regex: "([a-zA-Z0-9]+;[a-zA-Z0-9_]+)"
- source_labels: ["hostname", "job"]
target_label: "instance"
regex: "([a-zA-Z0-9]+;[a-zA-Z0-9_]+)"