Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 1.01 KB

README.md

File metadata and controls

35 lines (24 loc) · 1.01 KB

py-air-control-exporter builder pypi-badge

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-exporter --host 192.168.1.105 --protocol http

This will serve metrics at http://0.0.0.0:9896/metrics.

For more instructions run py-air-control-exporter --help.

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>:9896"]
        labels:
          location: "bedroom"