Giter VIP home page Giter VIP logo

prometheus-fzj-weather-exporter's Introduction

FZJ-Weather Prometheus Exporter

The FZJ-Weather Prometheus Exporter (short: exporter) provides weather data in the format specified for Prometheus Exporters. It consists of two parts:

  1. fzj_weather.py: a python script using BeautifulSoup4 and requests to parse and return meteorological data from a weather station inside the Forschungszentrum Jülich (short: FZJ). It does so by parsing the website providing the information.
  2. exporter (main.py): uses said script to receive, parse and provide the data to the Prometheus database. Once started, it runs indefinitely until interrupted.

main.py references the weather script and other needed scripts. It therefore marks the entry point of the exporter.

Installation and Usage

  1. Install the package from the corresponding GitHub Repository: pip install git+https://github.com/psyinfra/prometheus_fzj_weather_exporter.git
  2. Start the exporter: prometheus_fzj_weather_exporter
  3. (from another terminal) curl 127.0.0.1:9184

Or

  1. Clone the project: git clone [email protected]:psyinfra/prometheus-fzj-weather-exporter.git
  2. Install dependencies from inside the repository: pip install -e .
  3. Start the exporter: python prometheus_fzj_weather_exporter/main.py --web.listen-address 127.0.0.1:9184
  4. (from another terminal) curl 127.0.0.1:9184

The output of curl 127.0.0.1:9184 has this structure (similar for the other data i.e. air pressure, humidity, wind power, wind direction):

# HELP fzj_weather_air_temperature temperature in celsius
# TYPE fzj_weather_air_temperature gauge
fzj_weather_air_temperature 14.0

prometheus-fzj-weather-exporter's People

Contributors

o-druska avatar tobiaskadelka avatar aqw avatar

Stargazers

 avatar

Watchers

 avatar Benjamin Poldrack 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.