Script for gathering temp and humidity readings from AS2302 in a format that Prometheus can process.
Clone the repo
git clone https://github.com/adafruit/Adafruit_Python_DHT.git
cd Adafruit_Python_DHTInstall dependencies
sudo apt-get install build-essential python-devInstalling
sudo python setup.py installnode_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