Comments (15)
What version are you using?
I will try and reproduce.
from collectd-rabbitmq.
Thanks for the help. Below are the versions.
Python 2.7.6
{running_applications,
[{rabbitmq_management,"RabbitMQ Management Console","3.6.9"},
{rabbitmq_web_dispatch,"RabbitMQ Web Dispatcher","3.6.9"},
{rabbitmq_management_agent,"RabbitMQ Management Agent","3.6.9"},
{rabbit,"RabbitMQ","3.6.9"},
from collectd-rabbitmq.
I also get this error with Python 2.7.13, collectd 5.7.1.git, and the latest version of the types.db.custom file & types.db. It is running on a Ubuntu 17.04 server, as well.
If you need anymore information, feel free to ping me.
from collectd-rabbitmq.
@shymega Is there any fix? Should we change the python version ?
from collectd-rabbitmq.
@emraanali11 I don't know anymore than you do. Sorry.
from collectd-rabbitmq.
I am trying to reproduce.
I do not have a TypesDB "/usr/share/collectd/types.db.custom"
but my config is
TypesDB "/usr/local/lib/python2.7/dist-packages/collectd_rabbitmq-1.19.0-py2.7.egg/share/collectd-rabbitmq/types.db.custom"
LoadPlugin python
<Plugin python>
LogTraces true
Interactive false
Import "collectd_rabbitmq.collectd_plugin"
<Module "collectd_rabbitmq.collectd_plugin">
Username "collectd"
Password "collectd"
Realm "RabbitMQ Management"
Host "localhost"
Port "15672"
</Module>
</Plugin>
That location is generated from the python setup.py.
Do you have a types file in a similar location?
Also, did you install through pip or manually ?
from collectd-rabbitmq.
@jimbydamonk I have my file located at /usr/local/share/collectd-rabbitmq/types.db.custom and i used pip for installation. I will try and install it manually once.
from collectd-rabbitmq.
My solution was to give up with collectd and use Telegraf instead. Telegraf seems to work better for my use-case. I hope this helps anyone who wants to gather metrics from RabbitMQ at the moment, and aren't having much luck with this plugin 😄
from collectd-rabbitmq.
@shymega Can you share the plugin name or document which you used, will be a great help. Thanks
from collectd-rabbitmq.
@emraanali11 This was what I used. Hope that helps.
from collectd-rabbitmq.
I've run into this same issue as well, and this doesn't seem to be an issue with this plugin. For my version of collectd 5.5.1 on Ubuntu 16.04.3 LTS it seem collectd is kind of picky on how the additional types need to be defined. I've only had success with explicitly stating both configurations:
TypesDB "/usr/share/collectd/rabbitmq.types.db"
TypesDB "/usr/share/collectd/types.db"
...
LoadPlugin python
...
<Plugin python>
LogTraces true
Interactive false
Import "collectd_rabbitmq.collectd_plugin"
<Module "collectd_rabbitmq.collectd_plugin">
Username "guest"
Password "guest"
Realm "RabbitMQ Management"
Host "localhost"
Port "15672"
<Ignore "queue">
Regex "^amq"
</Ignore>
<Ignore "exchange">
Regex "my-exchange"
</Ignore>
</Module>
</Plugin>
from collectd-rabbitmq.
@shymega or @emraanali11 Is it normal that you guys are pointing to a types.db.custom rather than types.db ?
from collectd-rabbitmq.
@Abdoubng Sorry, I really don't remember; it was so long ago. I now use Telegraf...
from collectd-rabbitmq.
@shymega ok, because i just tried it and i got the same errors, fixed by putting the "types.db" on the config rather that types.db.custom.
Well while we're at a data_set topic question for @jimbydamonk is it possible to add other dataset to the types.db ? i want to add the message rate incoming one
from collectd-rabbitmq.
If you have the same problem, look for a types.db
or types.db.custom
file.
In my case, I installed collectd-rabbitmq
with pip, and the file was found at /usr/local/share/collectd-rabbitmq/types.db.custom
So I added this line to rabbitmq.conf
:
TypesDB "/usr/local/share/collectd-rabbitmq/types.db.custom"
from collectd-rabbitmq.
Related Issues (20)
- vhost leading '/' is not properly escaped HOT 4
- Format issue with graphite output HOT 2
- Unhandled python exception
- Dataset rabbitmq_queues not found HOT 3
- Statistics for queue not showing up HOT 2
- Statistics for Queue erroring out HOT 1
- Configurable list of collected stats HOT 1
- Question: how to read data after making desired configuration ? HOT 2
- Why are there hostnames as measurements? HOT 17
- Plugin hangs on startup HOT 2
- Enable monitoring on rabbit? plugin error message HOT 3
- plugin version in pypi HOT 1
- Allow to whitelist queues HOT 1
- rabbit.get_queues() default value is invalid
- HTTP Error: HTTP Error 401: Unauthorized for new RabbitMQ HOT 2
- Exception could not convert string to float HOT 2
- Some data points are always empty
- python3 migration/support HOT 2
- Exception Dataset not found HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from collectd-rabbitmq.