pdreker / fritz_exporter

Prometheus exporter for Fritz!Box home routers
Other
144 stars 32 forks source link

Additional Fritz!Box Fiber metrics #269

Closed laugmanuel closed 6 months ago

laugmanuel commented 6 months ago

I'm using a Fritz!Box 5530 Fiber to directly connect to a local fiber network.

The exporter works fine for basic metrics (wifi, wan, lan, ...) but does not contain any fiber specific information. What's required to add those metrics? I'm willing to provide example data or gather the relevant queries.

pdreker commented 6 months ago

This depends, if the box actually exposes those metrics. In the case of tv-cable internet for example the box quite obviously has the information (it is visible in the WebUI), but does not expose them via the API used by the exporter.

You can check out the "data donation" feature which is documented her: https://fritz-exporter.readthedocs.io/en/v2.3.0/helping_out.html

You can check the output yourself, if there is anything, you can find, which is missing from the exporter data and you can upload the data, so I can have a look. Please read the documentation before actually uploading data! Due to the nature of the data donation feature it may leak private data to me. The documentation also explains, how to clean that, if needed.

laugmanuel commented 6 months ago

Looks like there is not much (if any) fiber specific data in the output. However, I've uploaded a sanitized version anyway - maybe you can find more information.

The data is linked to fb0db37c-498a-459b-b556-f08aefadd691

pdreker commented 6 months ago

I had a look and I also cannot find any fiber specific information. Fiber is a bit special, when compared to DSL or cable, as there is way less signal processing and trickery going on. It just "Yes, there is light" or "No, there isn't". From my experience with bigger fiber optics systems, even there the best most devices have is the transmit and receive power values and verry rarely anything beyond those.

I'll close this, for now. I should get my own fiber internet some time next year, which will then probably prompt me to revisit this, if I can extract something :-)

laugmanuel commented 6 months ago

Just to complete this, the Fritz!Box shows the following information on the web interface:

And a few more non-interesting information like serial number, encryption state, sfp module name...