I have some additional labels on Prometheus targets via service discovery and re-labeling, e.g. instance_name
, or instance_id
.
I would like to propagate those labels from a specific target to defined alerts.
I read documentation through and through and tried different configurations, like the following one, but was not able to figure out how to achieve such propagation.
alert_relabel_configs:
- source_labels: ['__meta_oci_instance_id']
target_label: 'instance_id'
metric_relabel_configs:
- source_labels: ['__meta_oci_instance_id']
target_label: 'instance_id'