Git Product home page Git Product logo

weewx-prompush's Introduction

weewx prometheus pushgateway extension

this weewx extension enables you to send your weather data to a prometheus pushgateway. additional information regarding prometheus and its use can be found on the associated web site.

requirements

this extension requires the use of the requests package.

pip install requests

installation

this extension can be easily installed using the weewx extensions installer.

  1. download the extension from github:

    wget https://github.com/sulrich/weewx-prompush/archive/v1.0.0.tar.gz
    
  2. install using the weewx extension utility

    wee_extension --install v1.0.0.tar.gz
    
  3. update weewx.conf to appropriately tag weather data for submission into the prometheus pushgateway and subsequent scraping from prometheus. note that job and instance names may be subject to relabeling depending on your prometheus environment.

    [StdRESTful]
      [[PromPush]]
         job = PROMETHEUS_JOB_NAME
         instance = PROMETHEUS_INSTANCE_NAME
         host = PUSH_GW_HOST
         port = PUSH_GW_PORT
    

wee_extension will add a boilerplate [[PromPush]] section to your config. You need to edit it.

  1. restart weewx
sudo /etc/init.d/weewx stop
sudo /etc/init.d/weewx start

administravia

author: steve ulrich <[email protected]>
license: Apache License, Version 2.0. See LICENSE.
source: https://github.com/sulrich/weewx-prompush

weewx-prompush's People

Contributors

sulrich avatar rspier avatar

Watchers

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