Giter Site home page Giter Site logo

proxy's Introduction

influxdb-collectd-proxy

A very simple proxy between collectd and influxdb.

Build

Clone this project and just make it.

$ make

Usage

First, add following lines to collectd.conf then restart the collectd daemon.

LoadPlugin network

<Plugin network>
  # influxdb collectd proxy address
  Server "127.0.0.1" "8096"
</Plugin>

And start the proxy.

$ bin/influxdb-collectd-proxy --typesdb="/usr/share/collectd/types.db" --database="collectd" --username="collectd" --password="collectd"

Options

$ bin/influxdb-collectd-proxy --help
Usage of bin/influxdb-collectd-proxy:
  -database="": database for influxdb
  -hostname-as-column=false: true if you want the hostname as column, not in series name
  -pluginname-as-column=false: true if you want the pluginname as column
  -influxdb="localhost:8086": host:port for influxdb
  -logfile="proxy.log": path to log file
  -normalize=true: true if you need to normalize data for COUNTER types (over time)
  -storerates=true: true if you need to derive rates from DERIVE types
  -password="root": password for influxdb
  -proxyhost="0.0.0.0": host for proxy
  -proxyport="8096": port for proxy
  -typesdb="types.db": path to Collectd's types.db
  -username="root": username for influxdb
  -verbose=false: true if you need to trace the requests

Systemd Unit File

Only tested on Arch Linux. You may have to adjust the path of typesdb for your distro.

[Unit]
Description=Proxy that forwards collectd data to influxdb

[Service]
Type=simple
ExecStart=/usr/local/bin/influxdb-collectd-proxy --database=collectd --username=root --password=root --typesdb=/usr/share/collectd/types.db
User=collectd-proxy
Group=collectd-proxy

[Install]
RequiredBy=collectd.service

Dependencies

References

Contributors

This project is maintained with following contributors' supports.

proxy's People

Contributors

hoonmin avatar rplessl avatar yanfali avatar falzm avatar vbatoufflet avatar feraudet avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.