Skip to content

Commit 8822c56

Browse files
authored
Merge pull request #4701 from ratatoskr-org/T7794-fix-prometheus-exporters-invalid-ipv6-listen-address
Monitoring: T7794: Fixed blackbox_exporter, frr_exporter, node_exporter IPv6 listen-address invalid format
2 parents a4b72d3 + 5663a2d commit 8822c56

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

data/templates/prometheus/blackbox_exporter.service.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ User=node_exporter
1111
ExecStart={{ vrf_command }}/usr/sbin/blackbox_exporter \
1212
{% if listen_address is vyos_defined %}
1313
{% for address in listen_address %}
14-
--web.listen-address={{ address }}:{{ port }} \
14+
--web.listen-address={{ address | bracketize_ipv6 }}:{{ port }} \
1515
{% endfor %}
1616
{% else %}
1717
--web.listen-address=:{{ port }} \

data/templates/prometheus/frr_exporter.service.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ User=frr
1111
ExecStart={{ vrf_command }}/usr/sbin/frr_exporter \
1212
{% if listen_address is vyos_defined %}
1313
{% for address in listen_address %}
14-
--web.listen-address={{ address }}:{{ port }}
14+
--web.listen-address={{ address | bracketize_ipv6 }}:{{ port }}
1515
{% endfor %}
1616
{% else %}
1717
--web.listen-address=:{{ port }}

data/templates/prometheus/node_exporter.service.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ExecStart={{ vrf_command }}/usr/sbin/node_exporter \
1616
{% endif %}
1717
{% if listen_address is vyos_defined %}
1818
{% for address in listen_address %}
19-
--web.listen-address={{ address }}:{{ port }}
19+
--web.listen-address={{ address | bracketize_ipv6 }}:{{ port }}
2020
{% endfor %}
2121
{% else %}
2222
--web.listen-address=:{{ port }}

0 commit comments

Comments
 (0)