# Metricbeat RabbitMQ module not sending all metric sets

**URL:** https://discuss.elastic.co/t/metricbeat-rabbitmq-module-not-sending-all-metric-sets/144264
**Category:** Beats
**Tags:** metricbeat
**Created:** [August 14, 2018, 12:42am UTC](https://discuss.elastic.co/t/metricbeat-rabbitmq-module-not-sending-all-metric-sets/144264 "2018-08-14T00:42:32Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![joshsmoore](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joshsmoore/32/31581_2.png) [@joshsmoore](https://discuss.elastic.co/u/joshsmoore)
#### Post date: [August 14, 2018, 12:42am UTC](https://discuss.elastic.co/t/metricbeat-rabbitmq-module-not-sending-all-metric-sets/144264/1 "2018-08-14T00:42:32Z")

</div>

I am using metric beat 6.3.0 to collect metrics from rabbitMQ. I was able to get it working for the node metricset. However, the connection and queue metric sets do not report any data. I am not seeing any errors in my log file. However, when I run metricbest test modules I do get some errors (next comment). However, it doe snot indicate any way to resolve the error. If you have any ideas I would appreciate it.

Thanks,

Josh

---

<div class="post-metadata">

### Author: ![joshsmoore](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joshsmoore/32/31581_2.png) [@joshsmoore](https://discuss.elastic.co/u/joshsmoore)
#### Post date: [August 14, 2018, 12:44am UTC](https://discuss.elastic.co/t/metricbeat-rabbitmq-module-not-sending-all-metric-sets/144264/2 "2018-08-14T00:44:21Z")

</div>

root@localhost:~# metricbeat test modules  
...  
rabbitmq...  
node...OK  
result:  
{  
"@timestamp": "2018-08-14T00:39:25.598Z",  
"metricset": {  
"host": "127.0.0.1:15672",  
"module": "rabbitmq",  
"name": "node",  
"rtt": 4294  
},  
"rabbitmq": {  
"node": {  
"disk": {  
"free": {  
"bytes": 47495008256,  
"limit": {  
"bytes": 50000000  
}  
}  
},  
"fd": {  
"total": 1024,  
"used": 31  
},  
"gc": {  
"num": {  
"count": 2431137  
},  
"reclaimed": {  
"bytes": 39291174216  
}  
},  
"io": {  
"file\_handle": {  
"open\_attempt": {  
"avg": {  
"ms": 0  
},  
"count": 9  
}  
},  
"read": {  
"avg": {  
"ms": 0  
},  
"bytes": 1,  
"count": 1  
},  
"reopen": {  
"count": 1  
},  
"seek": {  
"avg": {  
"ms": 0  
},  
"count": 0  
},  
"sync": {  
"avg": {  
"ms": 0  
},  
"count": 0  
},  
"write": {  
"avg": {  
"ms": 0  
},  
"bytes": 0,  
"count": 0  
}  
},  
"mem": {  
"limit": {  
"bytes": 832916684  
},  
"used": {  
"bytes": 74231808  
}  
},  
"mnesia": {  
"disk": {  
"tx": {  
"count": 0  
}  
},  
"ram": {  
"tx": {  
"count": 14  
}  
}  
},  
"msg": {  
"store\_read": {  
"count": 0  
},  
"store\_write": {  
"count": 0  
}  
},  
"name": "rabbit@localhost",  
"proc": {  
"total": 1048576,  
"used": 377  
},  
"processors": 1,  
"queue": {  
"index": {  
"journal\_write": {  
"count": 0  
},  
"read": {  
"count": 0  
},  
"write": {  
"count": 0  
}  
}  
},  
"run": {  
"queue": 1  
},  
"socket": {  
"total": 829,  
"used": 0  
},  
"type": "disc",  
"uptime": 280958959  
}  
}  
}

queue...  
error... ERROR timeout waiting for an event  
connection...  
error... ERROR timeout waiting for an event  
root@localhost:~#

---

<div class="post-metadata">

### Author: ![jsoriano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsoriano/32/27920_2.png) [@jsoriano](https://discuss.elastic.co/u/jsoriano)
#### Post date: [August 14, 2018, 11:11am UTC](https://discuss.elastic.co/t/metricbeat-rabbitmq-module-not-sending-all-metric-sets/144264/3 "2018-08-14T11:11:55Z")

</div>

Hi @joshsmoore,

Indeed the error of `metricbeat test modules` indicates that metricbeat is not being able to collect any event on these metricsets. This can happen if there is no activity in the cluster and no queues defined, but I guess that you have activity in the cluster. Is it possible that the user you have configured in metricbeat doesn't have access to the vhosts with your queues?

---

<div class="post-metadata">

### Author: ![joshsmoore](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joshsmoore/32/31581_2.png) [@joshsmoore](https://discuss.elastic.co/u/joshsmoore)
#### Post date: [August 14, 2018, 3:05pm UTC](https://discuss.elastic.co/t/metricbeat-rabbitmq-module-not-sending-all-metric-sets/144264/4 "2018-08-14T15:05:35Z")

</div>

I think it should. Is there an HTTP endpoint I can hit on RabbitMQ to confirm this?

---

<div class="post-metadata">

### Author: ![jsoriano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsoriano/32/27920_2.png) [@jsoriano](https://discuss.elastic.co/u/jsoriano)
#### Post date: [August 14, 2018, 3:25pm UTC](https://discuss.elastic.co/t/metricbeat-rabbitmq-module-not-sending-all-metric-sets/144264/5 "2018-08-14T15:25:14Z")

</div>

You should be able to access to the rabbitmq management interface with your admin user, there you can check the users and vhosts you have.

---

<div class="post-metadata">

### Author: ![joshsmoore](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joshsmoore/32/31581_2.png) [@joshsmoore](https://discuss.elastic.co/u/joshsmoore)
#### Post date: [August 16, 2018, 12:50am UTC](https://discuss.elastic.co/t/metricbeat-rabbitmq-module-not-sending-all-metric-sets/144264/6 "2018-08-16T00:50:17Z")

</div>

Actually you where right about no messages being sent as the problem. It is a staging system and I thought I had sent some messages through but that did not seem to be working. Once I sent some more it is working now.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [September 13, 2018, 12:50am UTC](https://discuss.elastic.co/t/metricbeat-rabbitmq-module-not-sending-all-metric-sets/144264/7 "2018-09-13T00:50:18Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
