mxschmitt / fritzbox_exporter

Prometheus Exporter for FRITZ!Box (TR64 and UPnP)
https://mxschmitt.github.io/fritzbox_exporter
Apache License 2.0
58 stars 17 forks source link

Manual way to set ip of fritzbox #13

Closed Technikte closed 5 years ago

Technikte commented 5 years ago

Is there an manual way to set the ip of the fritzbox via docker variable or so ?

This error I get because I using a other dns server which can not resolve fritz.box.

cannot load services: could not load root element: could not get igddesc.xml: Get http://fritz.box:49000/igddesc.xml: dial tcp: lookup fritz.box on 1.1.1.1:53: no such host

mxschmitt commented 5 years ago

Yes, you can use the following parameter which is per default fritz.box: https://github.com/mxschmitt/fritzbox_exporter/blob/b6069d21e7fb98a0852a550bd9a14493ca3af9f0/cmd/exporter/exporter.go#L357

Technikte commented 5 years ago

Yes, sure. But any way to do this with the prebuilt docker image ?

mxschmitt commented 5 years ago

Just pass the --gateway-address as a commamd.