nest_exporter

command module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 15, 2019 License: GPL-3.0 Imports: 12 Imported by: 0

README

Nest Exporter

Build Status Go Report Card

Prometheus exporter for Nest thermostat devices.

Building and Running

Prerequisites:

Building:

go get github.com/scnewma/nest_exporter
cd ${GOPATH}/src/github.com/scnewma/nest_exporter
make
./nest_exporter --nest.token=[TOKEN]

Running Tests

make test

Using Docker

# put Nest token in .token file then
make docker-run

# OR

docker run -p 9264:9264 -d scnewma/nest_exporter --nest.token=[TOKEN]

Credit

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.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL