/mainflux-influxdb-writer

Mainflux InfluxDB service

Primary LanguageGoApache License 2.0Apache-2.0

Mainflux InfluxDB Service

License Build Status Go Report Card Join the chat at https://gitter.im/Mainflux/mainflux

InfluxDB (https://www.influxdata.com/) service of Mainflux IoT Cloud.

Connects to NATS and consumes all messages sent via all Mainflux protocols (HTTP, MQTT, WS, CoAP). Writes these messages into InfluxDB.

Installation

Prerequisite

If not set already, please set your GOPATH and GOBIN environment variables. For example:

mkdir -p ~/go
export GOPATH=~/go
export GOBIN=$GOPATH/bin
# It's often useful to add $GOBIN to $PATH
export PATH=$PATH:$GOBIN

Get the code

Use go tool to "get" (i.e. fetch and build) mainflux-influxdb-writer package:

go get github.com/mainflux/mainflux-influxdb-writer

This will download the code to $GOPATH/src/github.com/mainflux/mainflux-influxdb-writer directory, and then compile it and install the binary in $GOBIN directory.

Now you can run the program with:

mainflux-influxdb-writer

if $GOBIN is in $PATH (otherwise use $GOBIN/mainflux-influxdb-writer)

Documentation

Development documentation can be found here.

Community

Mailing lists

mainflux Google group.

IRC

Mainflux Gitter

Twitter

@mainflux

License

Apache License, version 2.0