GithubHelp home page GithubHelp logo
fritzbox_exporter

aexel90 / fritzbox_exporter Goto Github PK

View Code? Open in 1sVSCode Editor NEW

This project forked from sberk42/fritzbox_exporter

7.0 1.0 0.0 928 KB

Fritz!Box statistics exporter for prometheus

License: Apache License 2.0

Go 100.00%
prometheus prometheus-exporter golang fritzbox fritz-box upnp lua

fritzbox_exporter's Introduction

Fritz!Box Upnp statistics exporter for prometheus

This exporter exports some variables from an AVM Fritzbox to prometheus.

This exporter is tested with a Fritzbox 4040 software version 07.14.

Building

go get github.com/aexel90/fritzbox_exporter/
cd $GOPATH/src/github.com/aexel90/fritzbox_exporter
go install

Running

In the configuration of the Fritzbox the option "Statusinformationen über UPnP übertragen" in the dialog "Heimnetz > Heimnetzübersicht > Netzwerkeinstellungen" has to be enabled.

Usage:

$GOPATH/bin/fritzbox_exporter -h
Usage of ./fritzbox_exporter:
-collect-upnp
    If set ALL available upnp metrics will be collected
-gateway-lua-url string
    The URL of the FRITZ!Box - LUA (default "http://fritz.box")
-gateway-upnp-url string
    The URL of the FRITZ!Box - UPNP (default "http://fritz.box:49000")
-listen-address string
    The address to listen on for HTTP requests. (default "127.0.0.1:9042")
-metrics-lua string
    The JSON file with the lua metric definitions.
-metrics-upnp string
    The JSON file with the upnp metric definitions.
-password string
    The password for the FRITZ!Box
-result-file-upnp string
    The JSON file where to store upnp export results during test
-result-file-upnp-all string
    The JSON file where to store the result during collect
-result-file-lua string
    The JSON file where to store lua export results during test
-test
    test configured metrics
-username string
    The user for the FRITZ!Box UPnP service

Example execution

Running within prometheus:

$GOPATH/bin/fritzbox_exporter -username <username> -password <password> -metrics-upnp $GOPATH/bin/metrics-upnp.json -metrics-lua $GOPATH/bin/metrics-lua.json

Test exporter with upnp metrics and result file storage:

$GOPATH/bin/fritzbox_exporter -username <username> -password <password> -test -metrics-upnp $GOPATH/bin/metrics-upnp.json -result-file-upnp $GOPATH/bin/result-upnp.json

Test exporter with lua metrics and result file storage:

$GOPATH/bin/fritzbox_exporter -username <username> -password <password> -test -metrics-lua $GOPATH/bin/metrics-lua.json -result-file-lua $GOPATH/bin/result-lua.json

Print all available upnp metrics and its results:

$GOPATH/bin/fritzbox_exporter -username <username> -password <password> -collect-upnp -result-file-upnp-all $GOPATH/bin/result-upnp-collect.json

Grafana Dashboard

The dashboard is published here Grafana.

Dashboard ID is 13377.

Grafana

fritzbox_exporter's People

Contributors

sberk42 avatar aexel90 avatar ndecker avatar bachp avatar aaschmid avatar 123Haynes avatar juergenhoetzel avatar polyfloyd avatar

Stargazers

Volker Gropp avatar Dimitrij Pinneker avatar Stylewar avatar  avatar Joschua avatar René Hoffmann (Küttner) avatar  avatar

Watchers

Volker Gropp avatar

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.