diff --git a/nomad-job/promtail.nomad b/nomad-job/promtail.nomad index 0793307..0cbb4a9 100644 --- a/nomad-job/promtail.nomad +++ b/nomad-job/promtail.nomad @@ -73,7 +73,7 @@ scrape_configs: replacement: '$1' - source_labels: [__meta_consul_service_id] regex: '_nomad-task-([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})-.*' - target_label: 'task_id' + target_label: 'alloc_id' replacement: '$1' - source_labels: [__meta_consul_service] target_label: job