Skip to content

Commit

Permalink
prometheus blackbox exporter: quote IPv6 IPs
Browse files Browse the repository at this point in the history
  • Loading branch information
nusenu committed Jan 24, 2023
1 parent 079e3fd commit 97c9493
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/prometheus-scrape-configs
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@
- {{ ip.ipv4 }}:{{ port.dirport }}
{% endif %}
{% if ip.ipv6 != '' and tor_IPv6 %}
- [{{ ip.ipv6 }}]:{{ port.orport }}
- "[{{ ip.ipv6 }}]:{{ port.orport }}"
{% if port.dirport != 0 %}
- [{{ ip.ipv6 }}]:{{ port.dirport }}
- "[{{ ip.ipv6 }}]:{{ port.dirport }}"
{% endif %}
{% endif %}
{% endfor %}
Expand Down

0 comments on commit 97c9493

Please sign in to comment.