-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhance documentation and error reporting #14
Comments
Metrics are exposed on the |
Good point - all those exporters send to /metrics. So I rephrase my request and the result looks better but not perfect. I can now see metrics related to the Go language so I'd say the exporter itself but nothing related to my fritz box or data connection. Is the error from the docker container related?
|
Here the logs from my docker container:
|
Seems connected to #8 although I have the FritzBox 7490 with OS 07.12. |
From the error I assume the XML parser tries to read HTML content. I suggest to extend the code at
|
Looking closer at the source code I take it the exporter is trying to access http://fritz.box:49000/tr64desc.xml My Fritz Box responds to this URL with a 404 code:
This input could explain the error reported by the exporter. Looking at https://www.schlaue-huette.de/apis-co/fritz-tr064/ it seems you have to activate both
Only the second one is active on my router as mentioned in https://github.com/mxschmitt/fritzbox_exporter#fritzos-700 |
I activated the first setting 'Zugriff für Anwendungen zulassen' and now the URL responds with an XML document. The exporter now reports authorization problems which is in sync with https://www.schlaue-huette.de/apis-co/fritz-tr064/
|
Confirmed. After creating a user and configuring that on the docker command line the metrics are available now. BTW, the exporter binary accepts -user and -password parameters however the README.md does not list them. All in all just some documentation update is required. Changes to the code could make detection easier. |
@HiranChaudhuri Could you tell me how you configured the docker command line ? I currently am stuck on changing some of the parameters, using enviroment variables doesn't seem to work for me. |
You are struggling with the undocumented command line options - my docker command line contains this: |
Hi there.
I am trying to run the docker image but it seems to fail. The error message does not really indicate what I could fix. It's a new setup so it never worked before...
If I try to access the metrics I get this:
All this is run against a Fritzbox 7490 that has metrics exposed via UPNP.
The text was updated successfully, but these errors were encountered: