diff --git a/templates/scrape_self.conf.j2 b/templates/scrape_self.conf.j2 index a1194ec..5542ee0 100644 --- a/templates/scrape_self.conf.j2 +++ b/templates/scrape_self.conf.j2 @@ -1,6 +1,6 @@ - job_name: 'prometheus' static_configs: - - targets: ['localhost:9090'] + - targets: ['{{ prometheus.args["web.listen-address"] }}'] relabel_configs: - replacement: '{{ inventory_hostname }}' target_label: instance