Fritz! exporter for prometheus
⚠️ v4.0.0 breaking changes — action may be required
- Legacy MD5 web login refused by default. Devices on Fritz!OS before 7.24 only offer an MD5 login to the web interface, which the smart home, DOCSIS, fibre and REST API metrics use. For such a device the exporter now logs an error and reads no web interface metrics from it until restarted; its TR-064 metrics keep working. Upgrade Fritz!OS, or set
allow_unsafe_md5_password: true(env:FRITZ_ALLOW_UNSAFE_MD5_PASSWORD=true) for that device to accept the risk.- Devices without a readable serial number are not collected. They are reported as unreachable and, after three retries, given up until restart, instead of being collected with
serial="n/a".- Unreadable data is now skipped and reported in the new
fritz_read_problemmetric.- Docker image runs as
nobody(65534). Mounted config and password files must be readable by that user. The image and the Helm chart now listen on0.0.0.0by default; a config file used with plain Docker must setlisten_address: 0.0.0.0.--donate-dataremoved.- Stricter configuration. Unknown keys, a device without password and duplicate device names stop the exporter at startup. The device name now defaults to the hostname (also for
FRITZ_NAME, which used to default toFritz!Box): setnameto keep yourfriendly_namelabels.- Changing labels moved to
_infometrics. Labels that change with the device's state (Fritz!OS version, update version, access type, PPP error, WAN connection state and address, WiFi SSID/standard/enabled, WiFi client band and address, host address and name) are no longer labels of the data series, but of new…_infometrics (fritz_device_info,fritz_wifi_info,fritz_host_info, …). Update dashboards and alerts that use these labels; the upgrade notes list them all.- Log messages reworked. Many messages changed wording, level or frequency, and every message about a device now names it as
<name> (<host>). If you match log messages, e.g. for alerts, check your patterns.See the upgrade notes for details.
⚠️ v3.0.0 breaking change — action may be required The default listen address has changed from
0.0.0.0to127.0.0.1. If Prometheus scrapes this exporter over the network and you have not setlisten_address/FRITZ_LISTEN_ADDRESSexplicitly, the exporter will no longer be reachable after upgrading. Setlisten_address: 0.0.0.0in your config orFRITZ_LISTEN_ADDRESS=0.0.0.0in your environment to restore the old behaviour. See the upgrade notes for full details including the home automation metric label change.
This is a prometheus exporter for AVM Fritz! home network devices commonly found in Europe. This exporter uses the devices builtin TR-064 API via the fritzconnection python module.
The exporter should work with Fritz!Box and Fritz!Repeater Devices (and maybe others). It actively checks for supported metrics and queries the for all devices configured (Yes, it has multi-device support for all you Mesh users out there.)
It has been tested against an AVM Fritz!Box 7590 (DSL), a Fritz!Box 5690 (fibre), a Fritz!Box 5530 Fiber, a Fritz!Box 6660 Cable (DOCSIS, FRITZ!OS 8.25), a Fritz!Repeater 2400 and a Fritz!WLAN Repeater 1750E. If you have another box and data is missing, please file an issue or PR on GitHub.
Documentation
Check out the full documentation at ReadTheDocs
Event log: fritz_logextractor
The exporter reads metrics, not the device's event log ("Ereignisse"). For that there is a companion tool, fritz_logextractor (documentation): it reads the event log and writes each new entry once as a JSON line, so a log stack such as Loki or Elasticsearch can keep it across reboots of the box. It brings a Grafana dashboard and example configs for common log collectors.
Attention - Prometheus required
As the scope of this exporter lies on a typical home device, this also means that there are a lot of people interested in it, who may not have had any contact with Prometheus. As a result if this there have been some misunderstandings in the past, how this all works.
To avoid frustration you will need to know this:
You must setup and configure Prometheus separately! If you are running in plain docker or docker-compose there is a docker-compose setup for Prometheus at https://github.com/vegasbrianc/prometheus which also includes Grafana to actually produce dashboards. This may work out of the box or can be used as a starting point.
The whole setup required is:
- fritz_exporter: connects to your Fritz device, reads the metrics and makes them available in a format Prometheus understands
- prometheus: connects to the exporter at regular time intervals, reads the data and stores it in its database
- grafana: connects to prometheus and can query the database of metrics for timeseries and create dashboards from it.
You cannot connect grafana to the exporter directly. This will not work.
Please check the "Quickstart" in the documentation at ReadTheDocs for a simple setup.
Disclaimer
Fritz! and AVM are registered trademarks of AVM GmbH. This project is not associated with AVM or Fritz other than using the devices and their names to refer to them.
Copyright
Copyright 2019-2026 Patrick Dreker patrick@dreker.de
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Metadata
Release files for fritz-exporter 4.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fritz_exporter-4.0.1.tar.gz | 1.1 MB | Without provenance | Details for fritz_exporter-4.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fritz_exporter-4.0.1-py3-none-any.whl | Python 3 | none | any | Details for fritz_exporter-4.0.1-py3-none-any.whl |
Total release size: 1.2 MB
Release files / fritz_exporter-4.0.1.tar.gz
| Download URL | fritz_exporter-4.0.1.tar.gz |
|---|---|
| Size | 1.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7b85020b8a31dfaa053a23265c829a2d014a7c4a1c86721cced5f7cd8ef1fbe4
|
|
BLAKE2b-256 checksum How to use checksums |
e4835bfb0a5e97b792b40eab44b4c5f0848fe34b3bdc076b34ec831df589eb3f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / fritz_exporter-4.0.1-py3-none-any.whl
| Download URL | fritz_exporter-4.0.1-py3-none-any.whl |
|---|---|
| Size | 68.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ac84c19a760e7f28bba7afd79f2c6a838a47282268b8f25b0f885b5dea768de0
|
|
BLAKE2b-256 checksum How to use checksums |
3e85332c934b42129092a2f40500c544283adee7585bae497ce2fc793ce8e096
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for fritz-exporter 4.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.