Go to file
Uzurka aaa5b159e1
Docker Build / Build Docker image (push) Successful in 8m29s Details
Actualiser .gitea/workflows/docker-build.yml
2023-08-30 10:58:31 +02:00
.gitea/workflows Actualiser .gitea/workflows/docker-build.yml 2023-08-30 10:58:31 +02:00
.github/workflows first commit 2023-06-26 19:37:38 +02:00
contrib first commit 2023-06-26 19:37:38 +02:00
.drone.yml fixed .drone.yml 2023-06-26 19:49:49 +02:00
.gitignore first commit 2023-06-26 19:37:38 +02:00
Dockerfile-amd64 renamed Dockerfile.amd64 to Dockerfile-amd64 2023-06-26 19:51:37 +02:00
Dockerfile-arm added Drone CI/CD 2023-06-26 19:45:12 +02:00
LICENSE first commit 2023-06-26 19:37:38 +02:00
README.md Changed: Updated README 2023-08-29 11:03:18 +02:00
authz.go first commit 2023-06-26 19:37:38 +02:00
authz_test.go first commit 2023-06-26 19:37:38 +02:00
build.sh first commit 2023-06-26 19:37:38 +02:00
changelog.md first commit 2023-06-26 19:37:38 +02:00
gauges.go first commit 2023-06-26 19:37:38 +02:00
getters.go first commit 2023-06-26 19:37:38 +02:00
getters_test.go first commit 2023-06-26 19:37:38 +02:00
go.mod first commit 2023-06-26 19:37:38 +02:00
go.sum first commit 2023-06-26 19:37:38 +02:00
main.go first commit 2023-06-26 19:37:38 +02:00
structs.go first commit 2023-06-26 19:37:38 +02:00

README.md

freebox_exporter

A Prometheus exporter for Freebox stats, multiarch docker image

Cmds

freebox_exporter

Flags

  • -endpoint: Freebox API url (default http://mafreebox.freebox.fr)
  • -listen: port for Prometheus metrics (default :10001)
  • -debug: turn on debug mode
  • -fiber: turn off DSL metric for fiber Freebox

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 API endpoint
./freebox_exporter -endpoint "http://mafreebox.freebox.fr"
  • Port
./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:

  • Local token

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
  • Freebox API endpoint
docker run -d --name freebox-exporter --restart on-failure -p 10001:10001
  saphoooo/freebox-exporter -endpoint "http://mafreebox.freebox.fr"
  • Port
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.

  • The application must be launched from the local network.
  • You have to authorize the application from the freebox front panel.
  • You have to modify the rights of the application to give it "Modification des réglages de la Freebox"

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