This repository contains a Spring Boot-powered Java application that can be used to export metrics regarding smart home devices directly attached to the FRITZ!Box into a Prometheus instance for further processing.
- Build the app using Gradle
gradlew bootJar
- Copy the JAR file from
build/libs
to a suitable working directory - Start the application from the command line
java -jar fb-metrics-exporter-x.y.z.jar --fritzbox.password=<the-password>
- Add a new target to Prometheus pointing to
http://localhost:8080/prometheus
- Start scraping using Prometheus and import the sample Dashboard into Grafana