Coder Social home page Coder Social logo

hostapd_prometheus_exporter's Introduction

Prometheus exporter for hostapd

  • Uses hostapd_cli to get statistics from the Access Points (APs)/ Virtual Access Points (VAPs) and the connected clients.

  • Tested with hostapd v2.7

  • Expects the following name format for the ctrl_interface used in order to connect to hostapd: hostapd_$ID

    • Where each ID is unique and each hostapd instance only manages one AP/VAP
    • Detects the APs/VAPs automatically if a new ctrl iface is addded
  • Uses the following labels:

    • id=$ID (added to the statistics of the VAP/AP with this ID and the clients)
    • mac_sta=$MAC_STA (added to the statistics of the clients)
  • Expects a config.json file for configuration (an example is provided with the code):

    • DEFAULT: port (default 9551) and directory containing the hostapd ctrl ifaces (default '/var/run')

    • METRICS_AP: metrics related to the status of the AP/VAP. For each metric, it expects a name_hostapd (must be one of the obtained metrics when using the 'status' command in hostapd_cli), a name_prometheus (the one that will be exported to prometheus), a type (gauge or counter) and a help/information string

    • METRICS_STA: metrics related to the stations connected to the AP/VAP. For each metric, it expects a name_hostapd (must be one of the obtained metrics when using the 'all_sta' command in hostapd_cli), a name_prometheus (the one that will be exported to prometheus), a type (gauge or counter) and a help/information string

  • Author: Miguel Catalan-Cid [email protected]

  • Copyright 2019 Fundació Privada I2CAT, Internet i Innovació digital a Catalunya. See LICENSE for more details.

hostapd_prometheus_exporter's People

Contributors

mcatalancid avatar ferrancanellas avatar

Stargazers

Marek Rychly avatar

Watchers

Eduard Grasa avatar James Cloos avatar  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.