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.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
Built Distribution
Close
Hashes for py-air-control-exporter-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2bc8c0f12e8410983cc8c16ffae47d3c3b540467d7eccfad654b5f0eed9283cc |
|
MD5 | 84db73710555b09e0b55d59aea43f7ef |
|
BLAKE2b-256 | cd5fd3ceb555a1a4523b87cfc12d21912e262d707c92c01271cab4f8b19b5968 |
Close
Hashes for py_air_control_exporter-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 865a104b50dd3a3cbf0b05d74a4977d65108b22fc1423c8d72685c3cc4ecc462 |
|
MD5 | c65f21a37b2b133695bd36bdc8e6bd0c |
|
BLAKE2b-256 | e2b66b3897ed59020e89cf32f772bb1cd3f3fa2e1dc6c9f3c692efd116039e24 |