No project description provided
Project description
py-air-control-exporter
Exports air quality metrics to Prometheus.
This exporter uses py-air-control to obtain data.
Installation
pip install py-air-control-exporter
Running
PY_AIR_CONTROL_HOST=<ip of your air purifier> PY_AIR_CONTROL_PROTOCOL=<http|coap|plain_coap> FLASK_ENV=development FLASK_APP=py_air_control_exporter.app flask run --host 0.0.0.0
This will serve metrics at http://localhost:5000/metrics
.
You can make Prometheus scrape these with this scrape config:
scrape_configs:
- job_name: "py_air_control"
static_configs:
- targets: ["<the IP of your exporter host>:5000"]
labels:
location: "bedroom"
0.1.3
- Source distribution fixes: using SCM version, including test sources, including
CHANGELOG.md
.
0.1.2
- Removed the
py-air-control-exporter
entry point. - Fixed
pyairctrl.http_air_client
references topyairctrl.http_client
.
0.1.1
- Ported to
prometheus_client
and added descriptions to each metric.
0.1.0
- Initial release.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for py-air-control-exporter-0.1.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37aae47b7202735596b2e9a5294eb167df37973cd2b8bbf4d09545b4d1fb74c3 |
|
MD5 | 5cc031945fc4135d746a80590706d70b |
|
BLAKE2b-256 | 3a61aa4f72fa15bd3275d3d641d76f5d059a17e2c9a601ea227098d3389e2f6b |