sgp30-exporter

Exports SGP30 air quality sensor readings to Prometheus.


Keywords
sgp30-exporter, air, quality, prometheus, exporter
License
MIT
Install
pip install sgp30-exporter==0.2.1

Documentation

sgp30-exporter build-badge pypi-badge

Exports air quality readings from Pimoroni SGP30 to Prometheus.

This exporter uses pimoroni-sgp30 to obtain data.

Installation

pip install sgp30-exporter

Running

sudo sgp30-exporter

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

Note that sudo is required to give SGP30 read-write access to the /dev/i2c interface.

You can make Prometheus scrape these with this scrape config:

scrape_configs:
  - job_name: "sgp30"
    static_configs:
      - targets: ["<the IP of your exporter host>:9895"]
        labels:
          location: "bedroom"