-
Notifications
You must be signed in to change notification settings - Fork 813
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
[marathon] service checks and improvements #1266
Conversation
also have it uses requests library rather than urllib2
@@ -53,38 +52,27 @@ def get_v2_apps(self, url, timeout): | |||
return r.json |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This compat can be dropped, also as get_v2_apps
and get_v2_app_versions
could be refactored in one single function with the endpoint as argument because they are the same.
Also that would be the occasion to drop timeout_event
and status_code_event
and inline the service checks directly in the function above. Wdyt?
Hi @gphat , me again 😉 |
All great feedback as usual @LeoCavaille. Thanks for the suggestions. Pretty soon you'll have to give fewer of them. |
This looks good locally
|
doing this so we can more easily test methods which make use of the requests library
add activemq_xml agent check
Hey @gphat, looking again at your PR, there are just a few things missing:
Thanks |
…nto improve-marathon-plugin
Somehow I've botched my merge and screwed things up. Lemme resend this. :) |
Sorry for moving this, I suck. This is replaced by #1296. |
What's This Do?
After working on the just-merged etcd plugin for #1235 I wanted to take a look at the Marathon plugin. Looks like the key problem I saw was already fixed in #1240. While I was here I:
Thanks!
I appreciate you taking the time to look at this. If I can do anything to help a merge, let me know!