# Sensu - AMQP - Graphite

**URL:** <https://discourse.sensu.io/t/sensu-amqp-graphite/69>\
**Category:** Sensu Classic (EOL)\
**Created:** [August 15, 2013, 10:15pm UTC](https://discourse.sensu.io/t/sensu-amqp-graphite/69 "2013-08-15T22:15:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alejandro](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@Alejandro](https://discourse.sensu.io/u/Alejandro)\
**Post date:** [August 15, 2013, 10:15pm UTC](https://discourse.sensu.io/t/sensu-amqp-graphite/69/1 "2013-08-15T22:15:59Z")

</div>

Hi Guys,

I’m trying to use Sensu -\> RabbitMQ -\> Graphite

I have this working, or almost… the issue I have that each Sensu-client create your own Exchange, into Rabbit and this don’t match with the Carbon…

Into carbon-cache.py I have:

[cache]

LOCAL\_DATA\_DIR = /opt/graphite/storage/whisper

ENABLE\_AMQP = True

AMQP\_VERBOSE = True

AMQP\_HOST = rabbitmq.mgmt-int

AMQP\_PORT = 5672

AMQP\_VHOST = /sensu

AMQP\_USER = sensu

AMQP\_PASSWORD = PASS

AMQP\_EXCHANGE = metrics

AMQP\_METRIC\_NAME\_IN\_BODY = True

Sensu handler:

{

“handlers”: {

“graphite”: {

“type”: “amqp”,

“exchange”: {

“type”: “topic”,

“name”: “metrics”,

“durable”: “true”

},

“mutator”: “only\_check\_output”

}

}

}

And from RabbitMQ side

Virtual host  
Name  
Type  
Policy  
Parameters  
Message rate in  
Message rate out  
/  
(AMQP default)  
direct  
D  
/  
amq.direct  
direct  
D  
/  
amq.fanout  
fanout  
D  
/  
amq.headers  
headers  
D  
/  
amq.match  
headers  
D  
/  
amq.rabbitmq.log  
topic  
D  
/  
amq.rabbitmq.trace  
topic  
D  
/  
amq.topic  
topic  
D  
/sensu  
(AMQP default)  
direct  
D  
/sensu  
Amazon  
fanout  
/sensu  
DMTLA  
fanout  
/sensu  
SAO-Web  
fanout  
/sensu  
amq.direct  
direct  
D  
/sensu  
amq.fanout  
fanout  
D  
/sensu  
amq.headers  
headers  
D  
/sensu  
amq.match  
headers  
D  
/sensu  
amq.rabbitmq.trace  
topic  
D  
/sensu  
amq.topic  
topic  
D  
/sensu  
ci\_server  
fanout  
/sensu  
gateway\_server  
fanout  
/sensu  
gen-int  
fanout  
/sensu  
keepalives  
direct  
0.20/s  
0.20/s  
/sensu  
liferay\_server  
fanout  
/sensu  
mgmt-int  
fanout  
/sensu  
puppet\_server  
fanout  
/sensu  
qa-int  
fanout  
/sensu  
results  
direct  
0.00/s  
0.00/s  
/sensu  
varnish\_server  
fanout

You can see that METRICS exchange never be created but all this others yes… this come from:

“subscribers”: [“Amazon”]

Definition into VMSTATS check metrics

Some advice will be welcome.

Regards,

Ale

---

<div class="post-metadata">

**Author:** ![Luis\_Azedo](https://avatars.discourse-cdn.com/v4/letter/l/ee59a6/32.png) [@Luis\_Azedo](https://discourse.sensu.io/u/Luis_Azedo)\
**Post date:** [September 8, 2013, 5:44pm UTC](https://discourse.sensu.io/t/sensu-amqp-graphite/69/2 "2013-09-08T17:44:54Z")

</div>

Hi,

create a graphite handler

{

“handlers”: {

“graphite”: {

“type”: “amqp”,

“exchange”: {

“type”: “topic”,

“name”: “metrics”,

“durable”: “true”

},

“mutator”: “only\_check\_output”

}

}

}

and change your checks to use this handler.

i have it working.

> **···**
>
> On Thursday, August 15, 2013 11:15:59 PM UTC+1, Alejandro Ferrari wrote:
> 
> > Hi Guys,
> 
> > I’m trying to use Sensu → RabbitMQ → Graphite
> 
> > 
> 
> > I have this working, or almost… the issue I have that each Sensu-client create your own Exchange, into Rabbit and this don’t match with the Carbon…
> 
> > 
> 
> > Into carbon-cache.py I have:
> 
> > 
> 
> > [cache]
> 
> > LOCAL\_DATA\_DIR = /opt/graphite/storage/whisper
> 
> > 
> 
> > ENABLE\_AMQP = True
> 
> > AMQP\_VERBOSE = True
> 
> > AMQP\_HOST = rabbitmq.mgmt-int
> 
> > AMQP\_PORT = 5672
> 
> > AMQP\_VHOST = /sensu
> 
> > AMQP\_USER = sensu
> 
> > AMQP\_PASSWORD = PASS
> 
> > AMQP\_EXCHANGE = metrics
> 
> > AMQP\_METRIC\_NAME\_IN\_BODY = True
> 
> > 
> 
> > Sensu handler:
> 
> > {
> 
> > “handlers”: {
> 
> > “graphite”: {
> 
> > “type”: “amqp”,
> 
> > “exchange”: {
> 
> > “type”: “topic”,
> 
> > “name”: “metrics”,
> 
> > “durable”: “true”
> 
> > },
> 
> > “mutator”: “only\_check\_output”
> 
> > }
> 
> > }
> 
> > }
> 
> > 
> 
> > And from RabbitMQ side
> 
> > 
> 
> > 
> 
> > Virtual host  
> > Name  
> > Type  
> > Policy  
> > Parameters  
> > Message rate in  
> > Message rate out  
> > /  
> > (AMQP default)  
> > direct  
> > D  
> > /  
> > amq.direct  
> > direct  
> > D  
> > /  
> > amq.fanout  
> > fanout  
> > D  
> > /  
> > amq.headers  
> > headers  
> > D  
> > /  
> > amq.match  
> > headers  
> > D  
> > /  
> > amq.rabbitmq.log  
> > topic  
> > D  
> > /  
> > amq.rabbitmq.trace  
> > topic  
> > D  
> > /  
> > amq.topic  
> > topic  
> > D  
> > /sensu  
> > (AMQP default)  
> > direct  
> > D  
> > /sensu  
> > Amazon  
> > fanout  
> > /sensu  
> > DMTLA  
> > fanout  
> > /sensu  
> > SAO-Web  
> > fanout  
> > /sensu  
> > amq.direct  
> > direct  
> > D  
> > /sensu  
> > amq.fanout  
> > fanout  
> > D  
> > /sensu  
> > amq.headers  
> > headers  
> > D  
> > /sensu  
> > amq.match  
> > headers  
> > D  
> > /sensu  
> > amq.rabbitmq.trace  
> > topic  
> > D  
> > /sensu  
> > amq.topic  
> > topic  
> > D  
> > /sensu  
> > ci\_server  
> > fanout  
> > /sensu  
> > gateway\_server  
> > fanout  
> > /sensu  
> > gen-int  
> > fanout  
> > /sensu  
> > keepalives  
> > direct  
> > 0.20/s  
> > 0.20/s  
> > /sensu  
> > liferay\_server  
> > fanout  
> > /sensu  
> > mgmt-int  
> > fanout  
> > /sensu  
> > puppet\_server  
> > fanout  
> > /sensu  
> > qa-int  
> > fanout  
> > /sensu  
> > results  
> > direct  
> > 0.00/s  
> > 0.00/s  
> > /sensu  
> > varnish\_server  
> > fanout
> 
> > You can see that METRICS exchange never be created but all this others yes… this come from:
> 
> > “subscribers”: [“Amazon”]
> 
> > 
> 
> > Definition into VMSTATS check metrics
> 
> > 
> 
> > Some advice will be welcome.
> 
> > 
> 
> > Regards,
> 
> > Ale

---

<div class="post-metadata">

**Author:** ![Alejandro](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@Alejandro](https://discourse.sensu.io/u/Alejandro)\
**Post date:** [September 9, 2013, 6:11pm UTC](https://discourse.sensu.io/t/sensu-amqp-graphite/69/3 "2013-09-09T18:11:56Z")

</div>

Luis,

This is my setup

[root@monitoring-01 sensu]# cat conf.d/handler\_graphite.json

{

“handlers”: {

“graphite”: {

“type”: “amqp”,

“exchange”: {

“type”: “topic”,

“name”: “metrics”,

“durable”: “true”

},

“mutator”: “only\_check\_output”

}

}

}

[root@monitoring-01 sensu]# cat conf.d/metrics\_vmstat.json

{

“checks”: {

“vmstat\_metrics”: {

“type”: “metric”,

“handlers”: [“graphite”],

“command”: “/etc/sensu/plugins/vmstat-metrics.rb --scheme stats.:::name:::”,

“interval”: 60,

“subscribers”: [“Amazon”]

}

}

}

Do you see something wrong in my setup?

thanks

Alejandro

> **···**
>
> El domingo, 8 de septiembre de 2013 14:44:54 UTC-3, Luis Azedo escribió:
> 
> > Hi,
> 
> > create a graphite handler
> 
> > 
> 
> > {
> 
> > “handlers”: {
> 
> > “graphite”: {
> 
> > “type”: “amqp”,
> 
> > “exchange”: {
> 
> > “type”: “topic”,
> 
> > “name”: “metrics”,
> 
> > “durable”: “true”
> 
> > },
> 
> > “mutator”: “only\_check\_output”
> 
> > }
> 
> > }
> 
> > }
> 
> > 
> 
> > and change your checks to use this handler.
> 
> > 
> 
> > i have it working.
> > 
> > On Thursday, August 15, 2013 11:15:59 PM UTC+1, Alejandro Ferrari wrote:
> > 
> > > Hi Guys,
> 
> > > I’m trying to use Sensu → RabbitMQ → Graphite
> 
> > >
> 
> > > I have this working, or almost… the issue I have that each Sensu-client create your own Exchange, into Rabbit and this don’t match with the Carbon…
> 
> > >
> 
> > > Into carbon-cache.py I have:
> 
> > >
> 
> > > [cache]
> 
> > > LOCAL\_DATA\_DIR = /opt/graphite/storage/whisper
> 
> > >
> 
> > > ENABLE\_AMQP = True
> 
> > > AMQP\_VERBOSE = True
> 
> > > AMQP\_HOST = rabbitmq.mgmt-int
> 
> > > AMQP\_PORT = 5672
> 
> > > AMQP\_VHOST = /sensu
> 
> > > AMQP\_USER = sensu
> 
> > > AMQP\_PASSWORD = PASS
> 
> > > AMQP\_EXCHANGE = metrics
> 
> > > AMQP\_METRIC\_NAME\_IN\_BODY = True
> 
> > >
> 
> > > Sensu handler:
> 
> > > {
> 
> > > “handlers”: {
> 
> > > “graphite”: {
> 
> > > “type”: “amqp”,
> 
> > > “exchange”: {
> 
> > > “type”: “topic”,
> 
> > > “name”: “metrics”,
> 
> > > “durable”: “true”
> 
> > > },
> 
> > > “mutator”: “only\_check\_output”
> 
> > > }
> 
> > > }
> 
> > > }
> 
> > >
> 
> > > And from RabbitMQ side
> 
> > >
> 
> > >
> 
> > > Virtual host  
> > > Name  
> > > Type  
> > > Policy  
> > > Parameters  
> > > Message rate in  
> > > Message rate out  
> > > /  
> > > (AMQP default)  
> > > direct  
> > > D  
> > > /  
> > > amq.direct  
> > > direct  
> > > D  
> > > /  
> > > amq.fanout  
> > > fanout  
> > > D  
> > > /  
> > > amq.headers  
> > > headers  
> > > D  
> > > /  
> > > amq.match  
> > > headers  
> > > D  
> > > /  
> > > amq.rabbitmq.log  
> > > topic  
> > > D  
> > > /  
> > > amq.rabbitmq.trace  
> > > topic  
> > > D  
> > > /  
> > > amq.topic  
> > > topic  
> > > D  
> > > /sensu  
> > > (AMQP default)  
> > > direct  
> > > D  
> > > /sensu  
> > > Amazon  
> > > fanout  
> > > /sensu  
> > > DMTLA  
> > > fanout  
> > > /sensu  
> > > SAO-Web  
> > > fanout  
> > > /sensu  
> > > amq.direct  
> > > direct  
> > > D  
> > > /sensu  
> > > amq.fanout  
> > > fanout  
> > > D  
> > > /sensu  
> > > amq.headers  
> > > headers  
> > > D  
> > > /sensu  
> > > amq.match  
> > > headers  
> > > D  
> > > /sensu  
> > > amq.rabbitmq.trace  
> > > topic  
> > > D  
> > > /sensu  
> > > amq.topic  
> > > topic  
> > > D  
> > > /sensu  
> > > ci\_server  
> > > fanout  
> > > /sensu  
> > > gateway\_server  
> > > fanout  
> > > /sensu  
> > > gen-int  
> > > fanout  
> > > /sensu  
> > > keepalives  
> > > direct  
> > > 0.20/s  
> > > 0.20/s  
> > > /sensu  
> > > liferay\_server  
> > > fanout  
> > > /sensu  
> > > mgmt-int  
> > > fanout  
> > > /sensu  
> > > puppet\_server  
> > > fanout  
> > > /sensu  
> > > qa-int  
> > > fanout  
> > > /sensu  
> > > results  
> > > direct  
> > > 0.00/s  
> > > 0.00/s  
> > > /sensu  
> > > varnish\_server  
> > > fanout
> 
> > > You can see that METRICS exchange never be created but all this others yes… this come from:
> 
> > > “subscribers”: [“Amazon”]
> 
> > >
> 
> > > Definition into VMSTATS check metrics
> 
> > >
> 
> > > Some advice will be welcome.
> 
> > >
> 
> > > Regards,
> 
> > > Ale

---

<div class="post-metadata">

**Author:** ![Luis\_Azedo](https://avatars.discourse-cdn.com/v4/letter/l/ee59a6/32.png) [@Luis\_Azedo](https://discourse.sensu.io/u/Luis_Azedo)\
**Post date:** [September 12, 2013, 6:31pm UTC](https://discourse.sensu.io/t/sensu-amqp-graphite/69/4 "2013-09-12T18:31:34Z")

</div>

Hi,

your setup seems ok.

i remember i had to run “pip install txAMQP” in graphite server in order for the carbon-cache to work.

> **···**
>
> On Monday, September 9, 2013 7:11:56 PM UTC+1, Alejandro Ferrari wrote:
> 
> > Luis,
> 
> > This is my setup
> 
> > 
> 
> > [root@monitoring-01 sensu]# cat conf.d/handler\_graphite.json
> 
> > {
> 
> > “handlers”: {
> 
> > “graphite”: {
> 
> > “type”: “amqp”,
> 
> > “exchange”: {
> 
> > “type”: “topic”,
> 
> > “name”: “metrics”,
> 
> > “durable”: “true”
> 
> > },
> 
> > “mutator”: “only\_check\_output”
> 
> > }
> 
> > }
> 
> > }
> 
> > [root@monitoring-01 sensu]# cat conf.d/metrics\_vmstat.json
> 
> > {
> 
> > “checks”: {
> 
> > “vmstat\_metrics”: {
> 
> > “type”: “metric”,
> 
> > “handlers”: [“graphite”],
> 
> > “command”: “/etc/sensu/plugins/vmstat-metrics.rb --scheme stats.:::name:::”,
> 
> > “interval”: 60,
> 
> > “subscribers”: [“Amazon”]
> 
> > }
> 
> > }
> 
> > }
> 
> > 
> 
> > 
> 
> > Do you see something wrong in my setup?
> 
> > 
> 
> > thanks
> 
> > Alejandro
> 
> > El domingo, 8 de septiembre de 2013 14:44:54 UTC-3, Luis Azedo escribió:
> > 
> > > Hi,
> 
> > > create a graphite handler
> 
> > >
> 
> > > {
> 
> > > “handlers”: {
> 
> > > “graphite”: {
> 
> > > “type”: “amqp”,
> 
> > > “exchange”: {
> 
> > > “type”: “topic”,
> 
> > > “name”: “metrics”,
> 
> > > “durable”: “true”
> 
> > > },
> 
> > > “mutator”: “only\_check\_output”
> 
> > > }
> 
> > > }
> 
> > > }
> 
> > >
> 
> > > and change your checks to use this handler.
> 
> > >
> 
> > > i have it working.
> > > 
> > > On Thursday, August 15, 2013 11:15:59 PM UTC+1, Alejandro Ferrari wrote:
> > > 
> > > > Hi Guys,
> 
> > > > I’m trying to use Sensu → RabbitMQ → Graphite
> 
> > > >
> 
> > > > I have this working, or almost… the issue I have that each Sensu-client create your own Exchange, into Rabbit and this don’t match with the Carbon…
> 
> > > >
> 
> > > > Into carbon-cache.py I have:
> 
> > > >
> 
> > > > [cache]
> 
> > > > LOCAL\_DATA\_DIR = /opt/graphite/storage/whisper
> 
> > > >
> 
> > > > ENABLE\_AMQP = True
> 
> > > > AMQP\_VERBOSE = True
> 
> > > > AMQP\_HOST = rabbitmq.mgmt-int
> 
> > > > AMQP\_PORT = 5672
> 
> > > > AMQP\_VHOST = /sensu
> 
> > > > AMQP\_USER = sensu
> 
> > > > AMQP\_PASSWORD = PASS
> 
> > > > AMQP\_EXCHANGE = metrics
> 
> > > > AMQP\_METRIC\_NAME\_IN\_BODY = True
> 
> > > >
> 
> > > > Sensu handler:
> 
> > > > {
> 
> > > > “handlers”: {
> 
> > > > “graphite”: {
> 
> > > > “type”: “amqp”,
> 
> > > > “exchange”: {
> 
> > > > “type”: “topic”,
> 
> > > > “name”: “metrics”,
> 
> > > > “durable”: “true”
> 
> > > > },
> 
> > > > “mutator”: “only\_check\_output”
> 
> > > > }
> 
> > > > }
> 
> > > > }
> 
> > > >
> 
> > > > And from RabbitMQ side
> 
> > > >
> 
> > > >
> 
> > > > Virtual host  
> > > > Name  
> > > > Type  
> > > > Policy  
> > > > Parameters  
> > > > Message rate in  
> > > > Message rate out  
> > > > /  
> > > > (AMQP default)  
> > > > direct  
> > > > D  
> > > > /  
> > > > amq.direct  
> > > > direct  
> > > > D  
> > > > /  
> > > > amq.fanout  
> > > > fanout  
> > > > D  
> > > > /  
> > > > amq.headers  
> > > > headers  
> > > > D  
> > > > /  
> > > > amq.match  
> > > > headers  
> > > > D  
> > > > /  
> > > > amq.rabbitmq.log  
> > > > topic  
> > > > D  
> > > > /  
> > > > amq.rabbitmq.trace  
> > > > topic  
> > > > D  
> > > > /  
> > > > amq.topic  
> > > > topic  
> > > > D  
> > > > /sensu  
> > > > (AMQP default)  
> > > > direct  
> > > > D  
> > > > /sensu  
> > > > Amazon  
> > > > fanout  
> > > > /sensu  
> > > > DMTLA  
> > > > fanout  
> > > > /sensu  
> > > > SAO-Web  
> > > > fanout  
> > > > /sensu  
> > > > amq.direct  
> > > > direct  
> > > > D  
> > > > /sensu  
> > > > amq.fanout  
> > > > fanout  
> > > > D  
> > > > /sensu  
> > > > amq.headers  
> > > > headers  
> > > > D  
> > > > /sensu  
> > > > amq.match  
> > > > headers  
> > > > D  
> > > > /sensu  
> > > > amq.rabbitmq.trace  
> > > > topic  
> > > > D  
> > > > /sensu  
> > > > amq.topic  
> > > > topic  
> > > > D  
> > > > /sensu  
> > > > ci\_server  
> > > > fanout  
> > > > /sensu  
> > > > gateway\_server  
> > > > fanout  
> > > > /sensu  
> > > > gen-int  
> > > > fanout  
> > > > /sensu  
> > > > keepalives  
> > > > direct  
> > > > 0.20/s  
> > > > 0.20/s  
> > > > /sensu  
> > > > liferay\_server  
> > > > fanout  
> > > > /sensu  
> > > > mgmt-int  
> > > > fanout  
> > > > /sensu  
> > > > puppet\_server  
> > > > fanout  
> > > > /sensu  
> > > > qa-int  
> > > > fanout  
> > > > /sensu  
> > > > results  
> > > > direct  
> > > > 0.00/s  
> > > > 0.00/s  
> > > > /sensu  
> > > > varnish\_server  
> > > > fanout
> 
> > > > You can see that METRICS exchange never be created but all this others yes… this come from:
> 
> > > > “subscribers”: [“Amazon”]
> 
> > > >
> 
> > > > Definition into VMSTATS check metrics
> 
> > > >
> 
> > > > Some advice will be welcome.
> 
> > > >
> 
> > > > Regards,
> 
> > > > Ale

---

<div class="post-metadata">

**Author:** ![Alejandro](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@Alejandro](https://discourse.sensu.io/u/Alejandro)\
**Post date:** [October 22, 2013, 3:34am UTC](https://discourse.sensu.io/t/sensu-amqp-graphite/69/5 "2013-10-22T03:34:19Z")

</div>

Luis,

Can share with me, the carbon.conf and tell me if you have some debug log? I didn’t find the listener.log but I have the Debug in TRUE.

Thanks for any advice, I don’t understand why this does not work.

Thanks,

Alejandro

> **···**
>
> El jueves, 12 de septiembre de 2013 15:31:34 UTC-3, Luis Azedo escribió:
> 
> > Hi,
> 
> > your setup seems ok.
> 
> > i remember i had to run “pip install txAMQP” in graphite server in order for the carbon-cache to work.
> 
> > On Monday, September 9, 2013 7:11:56 PM UTC+1, Alejandro Ferrari wrote:
> > 
> > > Luis,
> 
> > > This is my setup
> 
> > >
> 
> > > [root@monitoring-01 sensu]# cat conf.d/handler\_graphite.json
> 
> > > {
> 
> > > “handlers”: {
> 
> > > “graphite”: {
> 
> > > “type”: “amqp”,
> 
> > > “exchange”: {
> 
> > > “type”: “topic”,
> 
> > > “name”: “metrics”,
> 
> > > “durable”: “true”
> 
> > > },
> 
> > > “mutator”: “only\_check\_output”
> 
> > > }
> 
> > > }
> 
> > > }
> 
> > > [root@monitoring-01 sensu]# cat conf.d/metrics\_vmstat.json
> 
> > > {
> 
> > > “checks”: {
> 
> > > “vmstat\_metrics”: {
> 
> > > “type”: “metric”,
> 
> > > “handlers”: [“graphite”],
> 
> > > “command”: “/etc/sensu/plugins/vmstat-metrics.rb --scheme stats.:::name:::”,
> 
> > > “interval”: 60,
> 
> > > “subscribers”: [“Amazon”]
> 
> > > }
> 
> > > }
> 
> > > }
> 
> > >
> 
> > >
> 
> > > Do you see something wrong in my setup?
> 
> > >
> 
> > > thanks
> 
> > > Alejandro
> 
> > > El domingo, 8 de septiembre de 2013 14:44:54 UTC-3, Luis Azedo escribió:
> > > 
> > > > Hi,
> 
> > > > create a graphite handler
> 
> > > >
> 
> > > > {
> 
> > > > “handlers”: {
> 
> > > > “graphite”: {
> 
> > > > “type”: “amqp”,
> 
> > > > “exchange”: {
> 
> > > > “type”: “topic”,
> 
> > > > “name”: “metrics”,
> 
> > > > “durable”: “true”
> 
> > > > },
> 
> > > > “mutator”: “only\_check\_output”
> 
> > > > }
> 
> > > > }
> 
> > > > }
> 
> > > >
> 
> > > > and change your checks to use this handler.
> 
> > > >
> 
> > > > i have it working.
> > > > 
> > > > On Thursday, August 15, 2013 11:15:59 PM UTC+1, Alejandro Ferrari wrote:
> > > > 
> > > > > Hi Guys,
> 
> > > > > I’m trying to use Sensu → RabbitMQ → Graphite
> 
> > > > >
> 
> > > > > I have this working, or almost… the issue I have that each Sensu-client create your own Exchange, into Rabbit and this don’t match with the Carbon…
> 
> > > > >
> 
> > > > > Into carbon-cache.py I have:
> 
> > > > >
> 
> > > > > [cache]
> 
> > > > > LOCAL\_DATA\_DIR = /opt/graphite/storage/whisper
> 
> > > > >
> 
> > > > > ENABLE\_AMQP = True
> 
> > > > > AMQP\_VERBOSE = True
> 
> > > > > AMQP\_HOST = rabbitmq.mgmt-int
> 
> > > > > AMQP\_PORT = 5672
> 
> > > > > AMQP\_VHOST = /sensu
> 
> > > > > AMQP\_USER = sensu
> 
> > > > > AMQP\_PASSWORD = PASS
> 
> > > > > AMQP\_EXCHANGE = metrics
> 
> > > > > AMQP\_METRIC\_NAME\_IN\_BODY = True
> 
> > > > >
> 
> > > > > Sensu handler:
> 
> > > > > {
> 
> > > > > “handlers”: {
> 
> > > > > “graphite”: {
> 
> > > > > “type”: “amqp”,
> 
> > > > > “exchange”: {
> 
> > > > > “type”: “topic”,
> 
> > > > > “name”: “metrics”,
> 
> > > > > “durable”: “true”
> 
> > > > > },
> 
> > > > > “mutator”: “only\_check\_output”
> 
> > > > > }
> 
> > > > > }
> 
> > > > > }
> 
> > > > >
> 
> > > > > And from RabbitMQ side
> 
> > > > >
> 
> > > > >
> 
> > > > > Virtual host  
> > > > > Name  
> > > > > Type  
> > > > > Policy  
> > > > > Parameters  
> > > > > Message rate in  
> > > > > Message rate out  
> > > > > /  
> > > > > (AMQP default)  
> > > > > direct  
> > > > > D  
> > > > > /  
> > > > > amq.direct  
> > > > > direct  
> > > > > D  
> > > > > /  
> > > > > amq.fanout  
> > > > > fanout  
> > > > > D  
> > > > > /  
> > > > > amq.headers  
> > > > > headers  
> > > > > D  
> > > > > /  
> > > > > amq.match  
> > > > > headers  
> > > > > D  
> > > > > /  
> > > > > amq.rabbitmq.log  
> > > > > topic  
> > > > > D  
> > > > > /  
> > > > > amq.rabbitmq.trace  
> > > > > topic  
> > > > > D  
> > > > > /  
> > > > > amq.topic  
> > > > > topic  
> > > > > D  
> > > > > /sensu  
> > > > > (AMQP default)  
> > > > > direct  
> > > > > D  
> > > > > /sensu  
> > > > > Amazon  
> > > > > fanout  
> > > > > /sensu  
> > > > > DMTLA  
> > > > > fanout  
> > > > > /sensu  
> > > > > SAO-Web  
> > > > > fanout  
> > > > > /sensu  
> > > > > amq.direct  
> > > > > direct  
> > > > > D  
> > > > > /sensu  
> > > > > amq.fanout  
> > > > > fanout  
> > > > > D  
> > > > > /sensu  
> > > > > amq.headers  
> > > > > headers  
> > > > > D  
> > > > > /sensu  
> > > > > amq.match  
> > > > > headers  
> > > > > D  
> > > > > /sensu  
> > > > > amq.rabbitmq.trace  
> > > > > topic  
> > > > > D  
> > > > > /sensu  
> > > > > amq.topic  
> > > > > topic  
> > > > > D  
> > > > > /sensu  
> > > > > ci\_server  
> > > > > fanout  
> > > > > /sensu  
> > > > > gateway\_server  
> > > > > fanout  
> > > > > /sensu  
> > > > > gen-int  
> > > > > fanout  
> > > > > /sensu  
> > > > > keepalives  
> > > > > direct  
> > > > > 0.20/s  
> > > > > 0.20/s  
> > > > > /sensu  
> > > > > liferay\_server  
> > > > > fanout  
> > > > > /sensu  
> > > > > mgmt-int  
> > > > > fanout  
> > > > > /sensu  
> > > > > puppet\_server  
> > > > > fanout  
> > > > > /sensu  
> > > > > qa-int  
> > > > > fanout  
> > > > > /sensu  
> > > > > results  
> > > > > direct  
> > > > > 0.00/s  
> > > > > 0.00/s  
> > > > > /sensu  
> > > > > varnish\_server  
> > > > > fanout
> 
> > > > > You can see that METRICS exchange never be created but all this others yes… this come from:
> 
> > > > > “subscribers”: [“Amazon”]
> 
> > > > >
> 
> > > > > Definition into VMSTATS check metrics
> 
> > > > >
> 
> > > > > Some advice will be welcome.
> 
> > > > >
> 
> > > > > Regards,
> 
> > > > > Ale

---

<div class="post-metadata">

**Author:** ![Alejandro](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@Alejandro](https://discourse.sensu.io/u/Alejandro)\
**Post date:** [October 22, 2013, 4:00am UTC](https://discourse.sensu.io/t/sensu-amqp-graphite/69/6 "2013-10-22T04:00:29Z")

</div>

Ok, guys I found the issue, into Centos 6.3 or similar, if use the version of txAMQP from the repo, is really old, after install this from Pip all start to work perfect!

Sorry if I don’t see this before, just I don’t identify that was different versions from repo vs pip.

Thanks!

Ale

---

<div class="post-metadata">

**Author:** ![jspaleta](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/jspaleta/32/141_2.png) [@jspaleta](https://discourse.sensu.io/u/jspaleta)\
**Post date:** [November 22, 2018, 2:04am UTC](https://discourse.sensu.io/t/sensu-amqp-graphite/69/7 "2018-11-22T02:04:58Z")

</div>


