Select Supported Platforms

Select Supported Architectures

Select Tier

Github Name


README
Asset Definition
Release Notes
Release Assets

Sensu InfluxDB Handler

The Sensu InfluxDB Handler is a Sensu Event Handler that sends metrics to
the time series database InfluxDB. Sensu can collect metrics using
check output metric extraction or the StatsD listener. Those collected metrics
pass through the event pipeline, allowing Sensu to deliver the metrics to the
configured metric event handlers. This InfluxDB handler will allow you to
store, instrument, and visualize the metric data from Sensu.

Installation

Download the latest version of the sensu-influxdb-handler from releases,
or create an executable script from this source.

From the local path of the sensu-influxdb-handler repository:

go build -o /usr/local/bin/sensu-influxdb-handler main.go

Configuration

Example Sensu 2.x handler definition:

{
  "name": "influx-db",
  "type": "pipe",
  "command": "sensu-influxdb-handler --addr '123.4.5.6:8086' --username 'foo' --password 'bar' --db-name 'myDB'"
}

Example Sensu 2.x check definition:

{
  "name": "collect-metrics",
  "command": "collect.sh",
  "interval": 10,
  "subscriptions": [
    "system"
  ],
  "output_metric_format": "graphite_plaintext",
  "output_metric_handlers": [influx-db]
}

That's right, you can collect different types of metrics (ex. Graphite), Sensu
will extract and transform them, and this handler will populate them into your
InfluxDB.

Usage Examples

Help:

Usage:
  sensu-influxdb-handler [flags]

Flags:
  -a, --addr string       the address of the influx-db server
  -d, --db-name string    the influx-db to send metrics to
  -h, --help              help for handler-influx-db
  -p, --password string   the password for the given db
  -u, --username string   the username for the given db

Are you sure you want to report this asset?

Please describe the reason for reporting this asset. Our moderators will be notified and will disable the asset if it is found to be inappropriate.

×

You must be signed in to report this asset.

Sign In with Github

Download

×

There are no asset definitions for this version, only source code:

Download Source Cancel