ndecker / fritzbox_exporter

Fritz!Box Upnp statistics exporter for prometheus
Apache License 2.0
91 stars 118 forks source link

[featurerequest] support for tr64desc.xml #7

Closed suptimal closed 1 year ago

suptimal commented 7 years ago

any plans for implement tr64 http://fritz.box:49000/tr64desc.xml

i want it for

NewUpstreamMaxRate 
NewDownstreamMaxRate
bachp commented 7 years ago

This doesn't seem to be available on my 7390. Do you have more details about this?

suptimal commented 7 years ago

i am using a fritzbox 7360 had to enable "enable accesss for applications"

had to translate from german to eng so it may not 100% match
homenetwork->network->networkconfiguration->enable accesss for applications
appended picture with ger interface

the request have to authenticate via digest auth, u can create the users under

System->FRITZ!Box-Users

if u implement the digest auth only i can also access my wanted values (using igddesc.xml)

heres the tr64desc.xml and the files referenced in the desc file.

fritz_tr64.zip f09b7b36-602d-47cf-951c-55d246910f4d

ndecker commented 7 years ago

Here is AVMs documentation: https://avm.de/fileadmin/user_upload/Global/Service/Schnittstellen/AVM_TR-064_remote.pdf

123Haynes commented 6 years ago

I've started working on this a bit. (Still learning go, so i'm slow)

So far i've implemented basic auth support in https://github.com/ndecker/fritzbox_exporter/pull/8

All that's left now should be to also parse the tr64desc.xml and add the metrics from there if a username has been supplied.

123Haynes commented 6 years ago

I've implemented this in https://github.com/ndecker/fritzbox_exporter/pull/9. Probably not the best code, but it works fine 😄

ndecker commented 1 year ago

I have merged the pull request from @123Haynes. I have just pushed a new version that allows configuring the exported metrics. With -test-metrics you can show all available metrics of your fritzbox. Have fun.