Leightweight FritzBox metrics collector (TR-064 & Lua) and writes them to InfluxDBv1+v2/QuestDB
4.7K
Lightweight daemon that collects metrics from your AVM FritzBox and pushes them into InfluxDB or QuestDB.
amd64 / arm64).env fileFRITZBOX_HOSTNAME=192.168.178.1
FRITZBOX_USERNAME=admin
FRITZBOX_PASSWORD=your-password
DB_TYPE=influxdb_v2
INFLUXDB_HOSTNAME=influxdb
INFLUXDB_PORT=8086
INFLUXDB_ORGANIZATION=my-org
INFLUXDB_BUCKET=fritzflux
INFLUXDB_TOKEN=your-token
# allow sending the token over plain HTTP inside your trusted home network
INFLUXDB_ALLOW_PLAINTEXT_CREDENTIALS=true
For QuestDB use instead:
DB_TYPE=questdb
QUESTDB_HOSTNAME=questdb
QUESTDB_PORT=9000
docker-compose.ymlservices:
fritzfluxdb:
image: giiibates/fritzfluxdb:latest
container_name: fritzfluxdb
restart: unless-stopped
env_file:
- ./.env
environment:
TZ: Europe/Berlin
LOG_LEVEL: INFO
docker compose up -d
| Variable | Default | Description |
|---|---|---|
FRITZBOX_HOSTNAME | 192.168.178.1 | FritzBox IP or hostname |
FRITZBOX_USERNAME | — | FritzBox login user |
FRITZBOX_PASSWORD | — | FritzBox login password |
DB_TYPE | influxdb_v1 | Database backend: influxdb_v1, influxdb_v2 or questdb |
INFLUXDB_HOSTNAME | — | InfluxDB host (or full URL, e.g. https://influx.example.com) |
INFLUXDB_PORT | 8086 | InfluxDB port (443 enables TLS automatically) |
INFLUXDB_ORGANIZATION | — | InfluxDB v2 organization |
INFLUXDB_BUCKET | — | InfluxDB v2 bucket |
INFLUXDB_DATABASE | — | InfluxDB v1 database |
INFLUXDB_TOKEN | — | InfluxDB v2 auth token |
INFLUXDB_TLS_ENABLED | false | Enable TLS for InfluxDB connection |
INFLUXDB_ALLOW_PLAINTEXT_CREDENTIALS | false | Allow credentials/token over plain HTTP (trusted networks only) |
QUESTDB_HOSTNAME | — | QuestDB host (or full URL); QUESTDB_* mirrors the INFLUXDB_* options |
QUESTDB_PORT | 9000 | QuestDB ILP/HTTP port |
QUESTDB_DATA_RETENTION_DAYS | 30 | TTL in days for a QuestDB table without TTL (0 disables, requires QuestDB 8.2.2+) |
LOG_LEVEL | INFO | Log level (DEBUG, INFO, WARNING, ERROR) |
TZ | Europe/Berlin | Container timezone |
TR-064 data and smart home devices are collected every 60 seconds; active network hosts every
10 minutes. FRITZBOX_REQUEST_INTERVAL can only increase these built-in intervals.
Pre-built dashboards are available in the GitHub repository:
This project is not affiliated with or endorsed by AVM GmbH. FRITZ!Box is a registered trademark of AVM GmbH.
Content type
Image
Digest
sha256:adc1006bc…
Size
58 MB
Last updated
3 days ago
docker pull giiibates/fritzfluxdb