| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
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.
This extension requires the use of the requests package.
pip install requests
This extension can be easily installed using the weewx extensions installer.
Download the extension from github:
wget https://github.com/Bert-R/weewx-prometheus/archive/v1.6.0.tar.gz
Install using the weewx extension utility
wee_extension --install v1.6.0.tar.gz
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.
Restart weewx
sudo /etc/init.d/weewx stop sudo /etc/init.d/weewx start
Original author: Tom Mitchell <tom@tom.org>
license: Apache License, Version 2.0. See LICENSE.
Original source: https://github.com/tomdotorg/weewx-prometheus
| Back | FazBrowse Home | New Git URL |