Merge pull request #3 from tchivert/patch-2
Remove port from node hosts
This commit is contained in:
commit
d12356f09a
@ -41,6 +41,11 @@ scrape_configs:
|
||||
{% for target in prometheus_node_exporter_targets %}
|
||||
- {{ target }}:9100
|
||||
{% endfor %}
|
||||
relabel_configs:
|
||||
- source_labels: [ __address__ ]
|
||||
target_label: instance
|
||||
regex: '(.*):9100'
|
||||
replacement: '${1}'
|
||||
{% endif %}
|
||||
|
||||
{% if prometheus_mysqld_exporter_targets is defined %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user