Giter VIP home page Giter VIP logo

freebox-exporter's People

Contributors

dependabot[bot] avatar trazfr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

freebox-exporter's Issues

Feature Request Add a Grafana dashboard

Hi,
Thank you for this exporter ! Despite having all of those metrics, I'm struggling to get a decent looking dashboard in Grafana (metrics are collected through a Prometheus instance).
Do you use a grafana dashboard by any chance ?
If so, I would be glad if you had a link to it.

Thanks for your work !

ERROR : collector.go:348: json: cannot unmarshal object into Go struct field MetricsFreeboxSwitchStatus.result.mac_list of type []*struct { Mac string "json:\"mac\""; Hostname string "json:\"hostname\"" }

Bonjour,

Depuis le passage a la freebox Delta (anciennement pop), j'ai le message d'erreur suivant :

ERROR : collector.go:348: json: cannot unmarshal object into Go struct field MetricsFreeboxSwitchStatus.result.mac_list of type []*struct { Mac string "json:"mac""; Hostname string "json:"hostname"" }

Une idée sur le soucis SVP ?

Version du microgiciel: 4.6.4
Version du matériel: Freebox v7 (r1)
Type de connexion: FTTH

Info gathered by the exporter seems light

Hello,

Thanks for your work and the exporter it works fine. But it seems that I get not so much information out of it (using Freebox Ultra v9 API v11)

freebox

When looking at the API documentation it looks like there are plenty of others informations to get out of the box. Stats on the switch ports etc. etc.

Am I missing something ?

Le package existe-t-il toujours ?

Bonjour,

Impossible d'installer le paquet avec la commande GO : can't load package: package github.com/trazfr/freebox-exporter@latest
go version go1.11.6 linux/amd64

Merci d'avance

No request for authorization (api_version invalid ?)

Hello
I'm trying to make this nice project work.
(Freebox is in bridge mode)

I have some issues with authorization:

With mDNS detection I get a timeout after 1 second, without any firewall between my container and the Freebox. (Using a Proxmox LXC)
With -httpDiscovery it does wait a little, without the message asking to authorize access on the Freebox screen, around 5s and then stop.

# bin/freebox-exporter -debug -httpDiscovery token.json
INFO: 2024/04/17 17:11:42 collector.go:641: Could not find the configuration file token.json
INFO: 2024/04/17 17:11:42 api_version.go:106: Freebox discovery: GET http://mafreebox.freebox.fr/api_version
DEBUG: 2024/04/17 17:11:42 api_version.go:55: APIVersion &{XXXXXXXXXX.fbxos.fr -------------------------------- true 32772 Freebox 10.2 /api/ FreeboxServer1,2 10}
DEBUG: 2024/04/17 17:11:42 http_client.go:80: HTTP request: POST /api/v10/login/authorize/

[around 5s wait here]

panic: Post "https://XXXXXXXXXXX.fbxos.fr:32772/api/v10/login/authorize/": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

goroutine 1 [running]:
main.NewCollector({0x7ffe41819738, 0xa}, 0x6?, 0x9dd23d?, 0x0, 0x0?)
	/opt/freebox-exporter/pkg/mod/github.com/trazfr/[email protected]/collector.go:645 +0x454
main.main()
	/opt/freebox-exporter/pkg/mod/github.com/trazfr/[email protected]/main.go:56 +0x2e5

I checked api version with the link, its 10.2, correctly detected by your software but http://mafreebox.freebox.fr/api/v10/
answers: "invalid_api_version" and http://mafreebox.freebox.fr/api/v10/login/authorize/ "invalid_request"

curl --insecure https://mafreebox.freebox.fr/api_version and curl --insecure https://mafreebox.freebox.fr/api/v10/login/ work from the container.

Maybe something has changed on their side ?
I can't know if there is something happening on the freebox screen, I would need around 30s to go there

Thank you !

New metrics

Hello,
Is it possible to have real-time throughput metrics (Download/Upload) ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.