sensit

command module
v0.0.0-...-f1f050a Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2015 License: MIT Imports: 3 Imported by: 0

README

Sensit

sensit command allows to lauch a small server that receives callbacks from the sensit server and stores the measures in an InfluxDB timeseries database.

Building

Prerequesites

To build the command you must have installed :

Checkout the code

You can checkout the code with a git clone or with a

go get github.com/joelvim/sensit
Build the executable

To build the executable, enter

cd $GOPATH/github.com/joelvim/sensit
godep go build

You should get the sensit command in the folder.

If you want to install the sensit command in your path, run :

cd $GOPATH/github.com/joelvim/sensit
godep go install

This command will compile the executable and copy it in the $GOPATH/bin directory. Just add this directory in your $PATH env variable, and play with it.

Usage

The command is documented, just type sensit -h to get the help.

HTTP API

The server provides 2 endpoints

/ping #healthcheck your app
/api/v1/temperature #receive the metrics.

What's missing

  • SSL Support : the application does not support SSL but is targeted to be behind a proxy like nginx or Apache HTTP.
  • Support for other metrics than temperature
  • Support for periodic callback types : agregation is made by the TSDB, we don't need preagregated data.

Coming soon (or later)

  • Command to import the history by extracting it from the Sensit API.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Godeps
+build go1.3
_workspace/src/github.com/boltdb/bolt
Package bolt implements a low-level key/value store in pure Go.
Package bolt implements a low-level key/value store in pure Go.
_workspace/src/github.com/codegangsta/cli
Package cli provides a minimal framework for creating and organizing command line Go applications.
Package cli provides a minimal framework for creating and organizing command line Go applications.
_workspace/src/github.com/gogo/protobuf/proto
Package proto converts data structures to and from the wire format of protocol buffers.
Package proto converts data structures to and from the wire format of protocol buffers.
_workspace/src/github.com/gogo/protobuf/proto/proto3_proto
Package proto3_proto is a generated protocol buffer package.
Package proto3_proto is a generated protocol buffer package.
_workspace/src/github.com/gorilla/context
Package context stores values shared during a request lifetime.
Package context stores values shared during a request lifetime.
_workspace/src/github.com/gorilla/mux
Package gorilla/mux implements a request router and dispatcher.
Package gorilla/mux implements a request router and dispatcher.
_workspace/src/github.com/hashicorp/go-msgpack/codec
High Performance, Feature-Rich Idiomatic Go encoding library for msgpack and binc .
High Performance, Feature-Rich Idiomatic Go encoding library for msgpack and binc .
_workspace/src/github.com/influxdb/influxdb/cluster/internal
Package internal is a generated protocol buffer package.
Package internal is a generated protocol buffer package.
_workspace/src/github.com/influxdb/influxdb/influxql
Package influxql implements a parser for the InfluxDB query language.
Package influxql implements a parser for the InfluxDB query language.
_workspace/src/github.com/influxdb/influxdb/meta/internal
Package internal is a generated protocol buffer package.
Package internal is a generated protocol buffer package.
_workspace/src/github.com/influxdb/influxdb/services/copier/internal
Package internal is a generated protocol buffer package.
Package internal is a generated protocol buffer package.
_workspace/src/github.com/influxdb/influxdb/services/hh
Package hh implements a hinted handoff for writes
Package hh implements a hinted handoff for writes
_workspace/src/github.com/influxdb/influxdb/tsdb
Package tsdb implements a durable time series database.
Package tsdb implements a durable time series database.
_workspace/src/github.com/influxdb/influxdb/tsdb/engine/wal
Package WAL implements a write ahead log optimized for write throughput that can be put in front of the database index.
Package WAL implements a write ahead log optimized for write throughput that can be put in front of the database index.
_workspace/src/github.com/influxdb/influxdb/tsdb/internal
Package internal is a generated protocol buffer package.
Package internal is a generated protocol buffer package.
_workspace/src/golang.org/x/crypto/bcrypt
Package bcrypt implements Provos and Mazières's bcrypt adaptive hashing algorithm.
Package bcrypt implements Provos and Mazières's bcrypt adaptive hashing algorithm.
_workspace/src/golang.org/x/crypto/blowfish
Package blowfish implements Bruce Schneier's Blowfish encryption algorithm.
Package blowfish implements Bruce Schneier's Blowfish encryption algorithm.
Package callbacks contains the business logic to convert the input of a sensit callback into Measure objects
Package callbacks contains the business logic to convert the input of a sensit callback into Measure objects
Package measure contains the data model.
Package measure contains the data model.
Package server contains all the types and methods that handle serving an http API to receive the callbacks from the sensit server.
Package server contains all the types and methods that handle serving an http API to receive the callbacks from the sensit server.
Package timeseries is a package that provides an API to store measures in a timeseries DB.
Package timeseries is a package that provides an API to store measures in a timeseries DB.
influxdb
Package influxdb is the implementation of the timeseries API for InfluxDB protocol
Package influxdb is the implementation of the timeseries API for InfluxDB protocol

Jump to

Keyboard shortcuts

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