# sensu-graphite error

**URL:** <https://discourse.sensu.io/t/sensu-graphite-error/518>\
**Category:** Sensu Classic (EOL)\
**Created:** [December 18, 2015, 11:36am UTC](https://discourse.sensu.io/t/sensu-graphite-error/518 "2015-12-18T11:36:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hari\_krishna\_kumar](https://avatars.discourse-cdn.com/v4/letter/h/a9a28c/32.png) [@Hari\_krishna\_kumar](https://discourse.sensu.io/u/Hari_krishna_kumar)\
**Post date:** [December 18, 2015, 11:36am UTC](https://discourse.sensu.io/t/sensu-graphite-error/518/1 "2015-12-18T11:36:32Z")

</div>

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/](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](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

---

<div class="post-metadata">

**Author:** ![Hari\_krishna\_kumar](https://avatars.discourse-cdn.com/v4/letter/h/a9a28c/32.png) [@Hari\_krishna\_kumar](https://discourse.sensu.io/u/Hari_krishna_kumar)\
**Post date:** [January 4, 2016, 2:16pm UTC](https://discourse.sensu.io/t/sensu-graphite-error/518/2 "2016-01-04T14:16:56Z")

</div>

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/](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](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
> 
> >
