Exports air quality readings from Pimoroni SGP30 to Prometheus.
This exporter uses pimoroni-sgp30 to obtain data.
pip install sgp30-exporter
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"