fix self scrape if for changed listen addresses
This commit is contained in:
parent
588fe344f1
commit
4fec7ab566
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue