diff --git a/coreos-config/roles/compose_project/templates/prometheus/prometheus.yml b/coreos-config/roles/compose_project/templates/prometheus/prometheus.yml index bf4a278..ad6271a 100644 --- a/coreos-config/roles/compose_project/templates/prometheus/prometheus.yml +++ b/coreos-config/roles/compose_project/templates/prometheus/prometheus.yml @@ -25,6 +25,11 @@ scrape_configs: - targets: - localhost:9090 - job_name: 'service_discovery' + metric_relabel_configs: + - source_labels: + - "container_name" + target_label: "instance" + action: replace file_sd_configs: - files: - /label_discovery/docker-targets.json