Sensu InfluxDB integration

Hi,

I am trying to integrate Sensu with InfluxDB, but I don’t see any metric from Sensu in InfluxDB, Here are my configuration

{

 "handlers": {

  "default": {
   "type": "set",
   "handlers": [
    "email",
    "pagerduty"
   ]
  },
 
  "email": {
   "type": "pipe",
   "command": "/opt/sensu/embedded/bin/handler-mailer.rb"
  },

  "pagerduty": {
   "type": "pipe",
   "command": "/opt/sensu/embedded/bin/handler-pagerduty.rb",
   "severities": [
    "ok",
    "critical" ]
  }
 },

 "mailer": {
    "admin_gui": "http://qa1sensu1/",
    "mail_from": "sensu@ qa1sensu1",
    "mail_to": [
      "fshibly@example.com"
      ],
    "smtp_address": "localhost",
    "smtp_port": "25",
    "smtp_domain": "example.com"
 },

 
 "pagerduty": {
  "api_key": "<api_key>"
 },

 "influxdb": {

“host” : “qa1influxdb1”,

“port” : “8086”,

“username” : “sensu”,

“password” : “sensu”,

“database” : “sensu”,

“time_precision”: “s”,

“use_ssl” : false,

“auth_method” : “params”,

“initial_delay” : 0.01,

“max_delay” : 30,

“open_timeout” : 5,

“read_timeout” : 300,

“retry” : null,

“prefix” : “”,

“denormalize” : true,

“status” : true

}

}

``

{

“checks”: {

"load_metics": {
   "command": "/opt/sensu/embedded/bin/metrics-load.rb",
   "subscribers": [
      "sensu"
   ],
   "handlers": [
    "influxdb"
   ],
   "type": "metirc",
   "interval": 60

}

}

``

Any help will be much appreciated

Cheers

Ferdous Shibly

Hey Ferdous, any luck on this one? If not, I’ll use this email as a way to bump the conversation back into people’s inboxes :slight_smile:

Cheers,
Matt

···

On Thu, Feb 1, 2018 at 9:21 AM, Ferdous Shibly bdshibly@gmail.com wrote:

Hi,

I am trying to integrate Sensu with InfluxDB, but I don’t see any metric from Sensu in InfluxDB, Here are my configuration

{

 "handlers": {

  "default": {
   "type": "set",
   "handlers": [
    "email",
    "pagerduty"
   ]
  },
 
  "email": {
   "type": "pipe",
   "command": "/opt/sensu/embedded/bin/handler-mailer.rb"
  },

  "pagerduty": {
   "type": "pipe",
   "command": "/opt/sensu/embedded/bin/handler-pagerduty.rb",
   "severities": [
    "ok",
    "critical" ]
  }
 },

 "mailer": {
    "admin_gui": "[http://qa1sensu1/](http://qa1sensu1/)",
    "mail_from": "sensu@ qa1sensu1",
    "mail_to": [
      "fshibly@example.com"
      ],
    "smtp_address": "localhost",
    "smtp_port": "25",
    "smtp_domain": "[example.com](http://example.com)"
 },

 
 "pagerduty": {
  "api_key": "<api_key>"
 },

 "influxdb": {

“host” : “qa1influxdb1”,

“port” : “8086”,

“username” : “sensu”,

“password” : “sensu”,

“database” : “sensu”,

“time_precision”: “s”,

“use_ssl” : false,

“auth_method” : “params”,

“initial_delay” : 0.01,

“max_delay” : 30,

“open_timeout” : 5,

“read_timeout” : 300,

“retry” : null,

“prefix” : “”,

“denormalize” : true,

“status” : true

}

}

``

{

“checks”: {

"load_metics": {
   "command": "/opt/sensu/embedded/bin/metrics-load.rb",
   "subscribers": [
      "sensu"
   ],
   "handlers": [
    "influxdb"
   ],
   "type": "metirc",
   "interval": 60

}

}

``

Any help will be much appreciated

Cheers

Ferdous Shibly

Matthew Broberg

VP of Community, Sensu

Join us on Slack