Skip to content

ventris/prom_as2302sensor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Script for gathering temp and humidity readings from AS2302 in a format that Prometheus can process.

Installation

Clone the repo

git clone https://github.com/adafruit/Adafruit_Python_DHT.git
cd Adafruit_Python_DHT

Install dependencies

sudo apt-get install build-essential python-dev

Installing

sudo python setup.py install

Example output

node_sensor_temp{node="sensor.example.com",location="somewhere",sensor="am2302"} 22.3
node_sensor_humidity{node="sensor.example.com",location="somewhere",sensor="am2302"} 35.3
node_sensor_updated_timestamp{node="sensor.example.com"} 1479072202

About

Script for gathering metrics to prometheus

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages