Skip to main content

No project description provided

Project description

Raspberry Pi DHT22 Prometheus Exporter build-badge pypi-badge

Exports DHT22 temperature and humidity readings in a format readable by Prometheus.

Installation

pip install rpi-dht-22-exporter

Running

rpi-dht22-exporter --pin-number <gpio pin number>

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

You can make Prometheus scrape these with this scrape config:

scrape_configs:
  - job_name: 'dht22@<the IP of your Raspberry Pi>'
    static_configs:
      - targets: ['<the IP of your Raspberry Pi>:9894']
        labels:
          location: 'bedroom'

2.0.1

  • CLI help test assertion less picky about help format.

2.0.0

  • Introduced the rpi-dht22-exporter CLI tool.

1.0.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

rpi-dht22-exporter-2.0.1.tar.gz (4.2 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