promqtt

command module
v0.0.0-...-64d19a2 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2018 License: Apache-2.0 Imports: 16 Imported by: 0

README

MQTT To Prometheus bridge

Build Status Go Report Card Docker Pulls

Send MQTT data to Prometheus.

Based on https://github.com/slayer/mqtt_blackbox_exporter

Build

$ mkdir -p ${GOPATH}/src/github.com/slayer/
$ git clone https://github.com/slayer/promqtt.git ${GOPATH}/src/github.com/slayer/promqtt/
$ cd ${GOPATH}/src/github.com/slayer/promqtt/
$ make

This will build the promqtt for all target platforms and write them to the build/ directory.

TODO: upload binaries Binaries are provided on Github, see https://github.com/slayer/promqtt.

Install

Place the binary somewhere in a PATH directory and make it executable (chmod +x promqtt).

Configure

See config.yaml.dist for a configuration example.

Run

Native:

$ ./promqtt -config.file config.yaml

Using Docker:

docker run --rm -it -p 9214:9214 -v ${PWD}/:/data/ slayer/promqtt:latest -config.file /data/config.yaml
$ curl -s http://127.0.0.1:9214/metrics

# TODO: paste output

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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