GithubHelp home page GithubHelp logo

b593-prometheus's Introduction

B593-prometheus

Scrape metrics from a Huawei B593 4G-Router and push them to a prometheus metrics pushgateway.

Settings via ENV variables (can be set in a ".env" file: PROM_GATEWAY: URL for prometheus pushgateway to push the metrics to (including https://...) B593_HOST: hostname/ip to connect to (default: 192.168.1.1) B593_USER: username to log in (default: admin) B593_PASS: password to log in (defaul: admin)

Needs phantomjs (http://phantomjs.org/download.html) in the same directory, e.g for mac os x:

wget -O phantomjs-2.1.1-macosx.zip https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-macosx.zip
unzip phantomjs*
mv phantomjs*/bin/phantomjs .

For running on a raspberry pi 2 or 3:

git clone https://github.com/arska/b593-prometheus
cd b593-prometheus
sudo apt-get install libfontconfig1 libfreetype6
wget https://github.com/fg2it/phantomjs-on-raspberry/releases/download/v2.1.1-wheezy-jessie/phantomjs_2.1.1_armhf.deb
sudo dpkg -i phantomjs_2.1.1_armhf.deb
ln -s /usr/local/bin/phantomjs

Add a crontab entry to gather stats every minute:

* *     * * *   root    /root/b593-prometheus/venv/bin/python /root/b593-prometheus/b593.py

b593-prometheus's People

Contributors

arska avatar dependabot-support avatar dependabot[bot] avatar renovate-bot avatar renovate[bot] avatar

Stargazers

 avatar

Watchers

 avatar  avatar

b593-prometheus's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

pip_requirements
requirements.txt
  • beautifulsoup4 ==4.11.2
  • bs4 ==0.0.1
  • certifi ==2021.10.8
  • charset-normalizer ==2.1.1
  • idna ==3.4
  • prometheus-client ==0.16.0
  • python-dotenv ==0.21.1
  • requests ==2.28.2
  • selenium ==3.141.0
  • soupsieve ==2.3.2.post1
  • urllib3 ==1.26.14
  • xmltodict ==0.13.0

  • Check this box to trigger a request for Renovate to run again on this repository

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.