collectd-json-influxdb-proxy

command module
v0.0.0-...-5b7ca3b Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2018 License: MIT Imports: 16 Imported by: 0

README

collectd-json-influxdb-proxy

Build Status

Translate collectd JSON HTTP requests to Influx Data line protocol

Requirements

  • Go >= 1.9

Compilation

dep ensure
go build .

Configuration for collectd

<Plugin "write_http">
    <Node "collectd-json-influxdb-proxy">
       URL "http://localhost:5826/"
       Format "JSON"
       BufferSize 129024
       Timeout 5000
    </Node>
</Plugin>

Running

./collectd-json-influxdb-proxy --debug-vars --log-requests

Example request

curl -H "Content-Type: application/json" -X POST -d '[{"values":  [1901474177],"dstypes":["counter"],"dsnames":["value"],"time":1280959128,"interval":10,"host":"leeloo.octo.it","plugin":"cpu","plugin_instance": "0","type":"cpu", "type_instance":"idle"}]' http://localhost:5826/

curl http://localhost:5826/debug/vars

(c) 2018 Serguei Poliakov mailto:serguei.poliakov@gmail.com MIT (c) 2018 Piotr Roszatycki mailto:piotr.roszatycki@gmail.com MIT

Based on https://github.com/dex4er/perl-collectd-json-influxdb-proxy

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