Prometheus exporter for sensor data like temperature and fan speed (built with go-modules)
 
 
Go to file
Nick Cabatoff 4f6d95f55f Add a simple Dockerfile. Add retry for hddtemp connection. Tolerate devices with a unit of '*', treat them as having a temperature of -1. 2016-08-14 14:01:04 -04:00
sensor-exporter Add a simple Dockerfile. Add retry for hddtemp connection. Tolerate devices with a unit of '*', treat them as having a temperature of -1. 2016-08-14 14:01:04 -04:00
Dockerfile Add a simple Dockerfile. Add retry for hddtemp connection. Tolerate devices with a unit of '*', treat them as having a temperature of -1. 2016-08-14 14:01:04 -04:00
LICENSE Initial commit 2016-07-17 17:45:12 -04:00
README.md add hddtemp metric 2016-07-17 19:01:08 -04:00

README.md

sensor-exporter

Prometheus exporter for sensor data like temperature and fan speed.

Inputs

lm-sensors (http://www.lm-sensors.org) to get metrics like CPU/MB temp and CPU/Chassis fan speed. You'll likely need to install lm-sensor dev package (libsensors4-dev on my Ubuntu 14 system) in order to build the dependant package github.com/md14454/gosensors.

hddtemp (http://www.guzu.net/linux/hddtemp.php) to get HDD temperature from SMART data. Since hddtemp must run as root to collect this data, rather than call it directly we expect the user to run it in daemon mode with its -d flag. Then we connect to a port it listens on to fetch the data.