No commit activity in last 3 years
No release in over 3 years
Extension to get metrics into Graphite
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

Sensu::Extensions::Graphite

This Extensions use Graphite plaintext protocol to relay metrics. It opens a presistant TCP connection to Graphite to send its metrics.

This extensions is a ripoff :

Install

  1. Using RubyGem (using sensu vendor ruby) :
$> /opt/sensu/embedded/bin/gem install sensu-extensions-graphite
  1. Using RPM :
$> rpm -Uvh https://github.com/amine7536/sensu-extensions-graphite/releases/download/v0.0.2/rubygem-sensu-extensions-graphite-0.0.2-1.noarch.rpm

Configuration

  1. Enable the extension :

Add the following to your Sensu configuration /etc/sensu/conf.d/extensions.json :

{
  "extensions": {
    "graphite": {
      "gem": "sensu-extensions-graphite"
    }
  }
}
  1. Configure the extention :

Add the following to your Sensu configuration /etc/sensu/conf.d/graphite.json :

{
  "graphite": {
    "name": "graphite",
    "host": "192.168.43.21",
    "port": 9000
  }
}
  1. Example metric :
{
  "checks": {
    "vmstat_metrics": {
      "type": "metric",
      "handlers": ["graphite"],
      "command": "/etc/sensu/plugins/vmstat-metrics.rb --scheme stats.:::name:::",
      "interval": 10,
      "subscribers": ["all"]
    }
  }
}