Add a relabel config for mysqld exporter targets port

This commit is contained in:
tom.chivert 2022-10-27 11:16:50 +02:00
parent 104f38529d
commit bd79baa0eb

View File

@ -69,6 +69,11 @@ scrape_configs:
- {{ target }}:9104 - {{ target }}:9104
{% endfor %} {% endfor %}
{% endif %} {% endif %}
relabel_configs:
- source_labels: [ __address__ ]
target_label: instance
regex: '(.*):9104'
replacement: '${1}'
{% endif %} {% endif %}
{% if prometheus_mongodb_exporter_targets is defined %} {% if prometheus_mongodb_exporter_targets is defined %}