-
Notifications
You must be signed in to change notification settings - Fork 814
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
Basic monitoring support for Apache Mesos #919
Conversation
Thanks for the great PR ! We will review and test on our end 🍖 |
fyi: if you're trying to setup up a test environment this may help: https://github.com/everpeace/vagrant-mesos |
class Mesos(AgentCheck): | ||
def check(self, instance): | ||
if 'url' not in instance: | ||
self.log.info("Skipping instance, no url found.") |
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.
Could you raise an Exception here instead ? The exception would then appear in the info page.
response = self.get_master_stats(url, timeout) | ||
if response is not None: | ||
for key in iter(response): | ||
self.gauge('mesos.stats.' + key, response[key], tags=['mesos']) |
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.
I don't think that this tag will be useful, do you have a use case for it ?
Also could you add support for custom tags (that would be defined in the yaml file) as we do in some other checks ?
Thanks!
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.
Sure I'll take a peek at the custom tags tomorrow and dispense with the 'mesos' tag.
Basic monitoring support for Apache Mesos
great, thanks! 💃 |
This is a basic agent check for Apache Mesos that consumes Mesos REST API endpoints and emits Datadog metrics. We've been using this code successfully with the latest Mesos 0.18.0 release and it's proved sufficient to build some useful dashboards.
Mesos currently provides statistics from three endpoints which are translated into Datadog metrics:
/master/roles.json
: list of running frameworks and resources being managed/master/stats.json
: aggregated statistics about # of slaves, tasks, offers, etc/master/state.json
: detailed information about frameworks, tasks, resources, etc.Hopefully others running Mesos will find this useful.