Remove port from node hosts
Add a relabel rule to the "node" job to hide the port number from instances names.
This commit is contained in:
parent
7551f42e0c
commit
2ec46198ef
@ -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