IPv6 Support

30 views
Skip to first unread message

Steve

unread,
Mar 11, 2020, 3:26:05 PM3/11/20
to Prometheus Users

Hi

Does anyone know if the following components already support IPv6?:


1. prometheus-alertmanager

2. prometheus-node-exporter

3. prometheus-server

4. grafana


If so, any configuration needed to activate IPv6?

Is it possible to deactivate IPv4?


Thanks!

-Steve

Ben Kochie

unread,
Mar 11, 2020, 3:30:09 PM3/11/20
to Steve, Prometheus Users
All Prometheus components work with IPv6. They will use it if available, following standard OS settings.

It's not possible to turn off IPv4 specifically, Prometheus just follows your OS settings.

--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/9abfbebf-f292-41e8-91b4-fa27aa7196aa%40googlegroups.com.

Brian Candler

unread,
Mar 11, 2020, 5:36:15 PM3/11/20
to Prometheus Users
All works over IPv6 for me.

With blackbox_exporter, if you give DNS names for targets, you have the option whether to prefer v4 over v6, or only use v4 or only use v6, when probing an endpoint.


Is it possible to deactivate IPv4?



You can bind the listener so it only accepts connections on IPv6.  To do that, you have to bind to a specific IPv6 address: e.g.

node_exporter --web.listen-address='[2001:db8::1]:9100' 

Binding to [::] accepts both v4 and v6 - although I have a vague idea there's some global kernel knob (bindv6only?) to turn off dual-protocol sockets.
Reply all
Reply to author
Forward
0 new messages