sensu-graphite error


#1

Hi , I have sensu set up and need to push metrics to graphite.

I followed the doc http://www.joemiller.me/2012/02/02/sensu-and-graphite/ and found graphite_tcp.rb is no more and hence took it from https://github.com/obrie/railsconf2013/blob/master/vendor/sensu-community-plugins/handlers/metrics/graphite-tcp.rb.

Remaining all the steps I followed from joemiller doc and used tcp handler .

Here are my files in sensu server:

/etc/sensu/graphite_tcp.json:

{

“graphite”: {

“server”:“xx.xx.xx.xx”,

“port”:“2003”

}

}

/etc/sensu/conf.d

{

“checks”: {

“NetworkI-O”: {

“type”:“metric”,

“handlers”:[“default”],

“command”: “/usr/bin/env /etc/sensu/plugins/metrics-sockstat.rb --scheme network.stats.::name:::”,

“interval”: 30,

“subscribers”: [

“default”

]

}

}

}

/etc/sensu/conf.d/handler_graphite.json

{

“handlers”: {

“default”: {

“type”: “tcp”,

“command”: “/usr/bin/env /etc/sensu/handlers/graphite-tcp.rb”,

“socket”:{

“host”: “xx.xx.xx.xx”,

“port”: 2003

}

}

}

}

Graphite and sensu running on two different machines.

in graphite, carbon logs are:

MetricLineReceiver connection with xx.xx.xx.xx:xxxx established

MetricLineReceiver connection with xx.xx.xx.xx:xxxx closed cleanly

Console logs:

Sorted 16 cache queues in 0.000053 seconds

Request anyone of to help me out for resolving the issue.

Thanks in advance


#2

HI All,

request anyone to help me out.

···

On Friday, December 18, 2015 at 5:06:32 PM UTC+5:30, kumar kittu wrote:

Hi , I have sensu set up and need to push metrics to graphite.

I followed the doc http://www.joemiller.me/2012/02/02/sensu-and-graphite/ and found graphite_tcp.rb is no more and hence took it from https://github.com/obrie/railsconf2013/blob/master/vendor/sensu-community-plugins/handlers/metrics/graphite-tcp.rb.

Remaining all the steps I followed from joemiller doc and used tcp handler .

Here are my files in sensu server:

/etc/sensu/graphite_tcp.json:

{

“graphite”: {

“server”:“xx.xx.xx.xx”,

“port”:“2003”

}

}

/etc/sensu/conf.d

{

“checks”: {

“NetworkI-O”: {

“type”:“metric”,

“handlers”:[“default”],

“command”: “/usr/bin/env /etc/sensu/plugins/metrics-sockstat.rb --scheme network.stats.::name:::”,

“interval”: 30,

“subscribers”: [

“default”

]

}

}

}

/etc/sensu/conf.d/handler_graphite.json

{

“handlers”: {

“default”: {

“type”: “tcp”,

“command”: “/usr/bin/env /etc/sensu/handlers/graphite-tcp.rb”,

“socket”:{

“host”: “xx.xx.xx.xx”,

“port”: 2003

}

}

}

}

Graphite and sensu running on two different machines.

in graphite, carbon logs are:

MetricLineReceiver connection with xx.xx.xx.xx:xxxx established

MetricLineReceiver connection with xx.xx.xx.xx:xxxx closed cleanly

Console logs:

Sorted 16 cache queues in 0.000053 seconds

Request anyone of to help me out for resolving the issue.

Thanks in advance