Skip to main content

No project description provided

Project description

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"

0.2.1

  • CLI help test assertion less picky about help format.

0.2.0

  • Introduced the sgp30-exporter CLI application. Makes it easier to run this exporter.
  • Exporting metrics on port 9895 by default.

0.1.2

  • Bugfix: try to reconnect even if initialization failed.

0.1.1

  • Bugfix: reconnect to the SGP30 device on I/O failure.

0.1.0

  • Initial release.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sgp30-exporter-0.2.1.tar.gz (5.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page