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.
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
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
)
Development documentation can be found here.
mainflux Google group.