blob: 63ed20abd7f65e9a933d793c1027b6374b9b7578 [file] [log] [blame]
parameters:
_param:
alerta_environment_label: ${_param:cluster_domain}
prometheus:
server:
config:
alert_relabel_configs:
- replacement: "${_param:alerta_environment_label}"
source_labels: "environment"
target_label: "environment"
- replacement: "aggregated"
source_labels: "instance"
target_label: "instance"
- source_labels: "host"
target_label: "instance"
regex: "(.+)"
- source_labels: "job"
target_label: "instance"
regex: "(.+)"
- source_labels: ["host", "job"]
target_label: "instance"
regex: "(.+;.+)"
- source_labels: ["hostname", "job"]
target_label: "instance"
regex: "(.+;.+)"