InfluxDB

ENTERPRISE: Built-in integrations are available for Sensu Enterprise users only.

Overview

Send metrics to InfluxDB using the InfluxDB HTTP API.

Configuration

Example(s)

The following is an example global configuration for the influxdb enterprise handler (integration).

{
  "influxdb": {
    "host": "8.8.8.8",
    "port": 8086,
    "username": "root",
    "password": "Bfw3Bdrn5WfqvOl1",
    "api_version": "0.9",
    "tags": {
      "dc": "us-central-1"
    }
  }
}

Integration specification

influxdb attributes

The following attributes are configured within the {"influxdb": {} } configuration scope.

host
description The InfluxDB host address.
required false
type String
default 127.0.0.1
example
"host": "8.8.8.8"
port
description The InfluxDB HTTP API port.
required false
type Integer
default 8086
example
"port": 9096
username
description The InfluxDB username.
required false
type String
default root
example
"username": "sensu"
password
description The InfluxDB user password.
required false
type String
default root
example
"password": "secret"
database
description The InfluxDB database (name) to use.
required false
type String
default db
example
"database": "sensu"
api_version
description The InfluxDB API version.
required false
type String
allowed values 0.8, 0.9
default 0.8
example
"api_version": "0.9"
tags
description Configurable custom tags (key/value pairs) to add to every InfluxDB measurement. PRO TIP: Augment the tags applied to each measurement by specifying additional InfluxDB tags in check and client definitions. See the Sensu Core reference docs to configure InfluxDB check attributes and client attributes.
required false
type Hash
default
{}
example
"tags": {
  "dc": "us-central-1"
}
timeout
description The InfluxDB HTTP API POST timeout (write).
required false
type Integer
default 10
example
"timeout": 3
ssl
description Enables communication over HTTPS.
required false
type Boolean
default false
example
"ssl": true