saphoooo / freebox_exporter

A prometheus exporter for freebox stats
Apache License 2.0
52 stars 26 forks source link

freebox_exporter

A Prometheus exporter for Freebox stats

Cmds

freebox_exporter

Flags

Preview

Here's what you can get in Prometheus / Grafana with freebox_exporter:

Preview

How to use it

Compiled binary

If you want to compile the binary, you can refer to this document which explains how to do it, depending on your OS and architecture. Alternatively, you can use ./build.sh.

You can also find the compiled binaries for MacOS, Linux (x86_64, arm64 and arm) and Windows in the release tab.

Quick start

./freebox_exporter

The following parameters are optional and can be overridden:

./freebox_exporter -endpoint "http://mafreebox.freebox.fr"
./freebox_exporter -listen ":10001"

Docker

Quick start

docker run -d --name freebox-exporter --restart on-failure  -p 10001:10001 \
  saphoooo/freebox-exporter

The following parameters are optional and can be overridden:

Volume allows to save the access token outside of the container to reuse authentication upon an update of the container.

docker run -d --name freebox-exporter --restart on-failure  -p 10001:10001 \
  -e HOME=token -v /path/to/token:/token saphoooo/freebox-exporter
docker run -d --name freebox-exporter --restart on-failure -p 10001:10001
  saphoooo/freebox-exporter -endpoint "http://mafreebox.freebox.fr"
docker run -d --name freebox-exporter --restart on-failure -p 8080:10001 \
  saphoooo/freebox-exporter

Caution on first run

If you launch the application for the first time, you must allow it to access the freebox API.

Source: https://dev.freebox.fr/sdk/os/