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.4
- Packaging fixes:
- Building outside a git repository now supported.
- Build process now verifies that the CHANGELOG.md version matches the git version.
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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89ffa4ffa972bed182e793406aca4716e3fb4e87aa46cae6ee831949eb6823b8 |
|
MD5 | ef59a98aa314dc2f3f4afa227c9dd5dc |
|
BLAKE2b-256 | 059ca0bf440e2f4a69cc124799ed78d8c1c3012440016659e8f938abdcf9e788 |