Prometheus exporter for Nest thermostat devices.
Prerequisites:
- Go
- Nest developer API token (use PIN-based authorization)
Building:
go get github.com/scnewma/nest_exporter
cd ${GOPATH}/src/github.com/scnewma/nest_exporter
make
./nest_exporter --nest.token=[TOKEN]
make test
# put Nest token in .token file then
make docker-run
# OR
docker run -p 9264:9264 -d scnewma/nest_exporter --nest.token=[TOKEN]
The idea for how to structure/build the project and accept flags for running the exporter came from reviewing node_exporter.
There is already a nest exporter available. I borrowed the metrics port from that exporter. I wrote a new exporter for learning purposes.