fix self scrape if for changed listen addresses

This commit is contained in:
nd 2020-05-23 14:42:47 +02:00
parent 588fe344f1
commit 4fec7ab566
No known key found for this signature in database
GPG key ID: 21B5CD4DEE3670E9

View file

@ -1,6 +1,6 @@
- job_name: 'prometheus' - job_name: 'prometheus'
static_configs: static_configs:
- targets: ['localhost:9090'] - targets: ['{{ prometheus.args["web.listen-address"] }}']
relabel_configs: relabel_configs:
- replacement: '{{ inventory_hostname }}' - replacement: '{{ inventory_hostname }}'
target_label: instance target_label: instance