Merge pull request #3 from tchivert/patch-2

Remove port from node hosts
This commit is contained in:
Ludovic Cartier 2022-06-01 15:28:44 +02:00 committed by GitHub
commit d12356f09a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,6 +41,11 @@ scrape_configs:
{% for target in prometheus_node_exporter_targets %} {% for target in prometheus_node_exporter_targets %}
- {{ target }}:9100 - {{ target }}:9100
{% endfor %} {% endfor %}
relabel_configs:
- source_labels: [ __address__ ]
target_label: instance
regex: '(.*):9100'
replacement: '${1}'
{% endif %} {% endif %}
{% if prometheus_mysqld_exporter_targets is defined %} {% if prometheus_mysqld_exporter_targets is defined %}