GithubHelp home page GithubHelp logo

isabella232 / sensu-influx-handler Goto Github PK

View Code? Open in Web Editor NEW

This project forked from launchdarkly/sensu-influx-handler

0.0 0.0 0.0 168 KB

Daemon to listen for Sensu metrics on a TCP port, and insert them into InfluxDB. No longer maintained.

License: Other

Go 100.00%

sensu-influx-handler's Introduction

sensu-influx-handler

A listener to take sensu metrics events on a TCP socket, and post them to InfluxDB

Motivation

If you want to use Sensu as your monitoring router, you still need to send the metrics somewhere.
InfluxDB is a good choice for this, but if you have a large number of metrics, forking a handler (using the pipe type) will be non-performant.

This small application is meant to run as a daemon, listening on a TCP port, for metrics events from Sensu.

Installation

You can use the pre-built binaries, or follow the instructions in the Compilation section to build yourself.

This process should be managed by something like supervisord.

Be sure to create an appropriate config file for your environment. The environment is specifed using the SENSU_INFLUX_MODE environment variable. For instance:

SENSU_INFLUX_MODE=production ./sensu-influx-handler 

This will start the app listening on the port specified in the config file.

Configuration

The configuration file used depends on the environment specified:

SENSU_INFLUX_MODE value config file used
(none) ./sensu-influx.local.conf
staging ./sensu-influx.stg.conf
production ./sensu-influx.prod.conf

The configuration file should be in the following format:

[influxdb]
host = localhost:8086
username = admin
password = admin
database = test
isSecure = no
isUDP = no

Then, configure a handler in Sensu, such as this /etc/sensu/conf.d/handler_influxdb.json:

{
  "handlers": {
    "influxdb": {
	  "type": "tcp",
      "socket": {
	    "host": "localhost",
    	"port": 3333
      }
    }
  }
}

Compilation

  • To build it for your local system:

    	godep go build
    
  • To cross-build:

      goxc
    

sensu-influx-handler's People

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.