Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RabbitMQ Management Plugin Check #330

Merged
merged 3 commits into from
Jan 8, 2013
Merged

Conversation

brettlangdon
Copy link
Member

Since the RabbitMQ Status plugin is no longer supported, this check is used to gather statistics from RabbitMQ's managment plugin by using the /api endpoint.

I have only tested this with RabbitMQ 3.0.1.

this check is used to gather statistics from RabbitMQ's managment plugin
@alq666
Copy link
Member

alq666 commented Jan 8, 2013

Apache Tomcat mirror is broken, causing travis to fail. Using http://mirrors.ibiblio.org/apache/tomcat/tomcat-7/v7.0.34/bin/apache-tomcat-7.0.34.tar.gz should pass.

@@ -0,0 +1,81 @@
import json
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you do from util import json instead it will support more version of python because we handle simplejson, stdlib json, etc.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, I also noticed there is checks.libs.httplib2 is this preferred over urllib2?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using urllib2 here is fine. We used httplib2 for one check so that timeouts would be compatible with versions >= 2.4, but that's not needed in this case, as far as I can tell.

@conorbranagan
Copy link
Member

Thanks for the pull. 👍

conorbranagan added a commit that referenced this pull request Jan 8, 2013
RabbitMQ Management Plugin Check
@conorbranagan conorbranagan merged commit fe2de39 into DataDog:master Jan 8, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants