-
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
[mesos] Improve mesos integration #1535
Conversation
|
I kept the metrics names from the old check to avoid breaking things during an upgrade. But we could also tag the old check as deprecated and keep it until the 6.0 release. For the later, we can reduce the number of metrics sent by the new check. Let me know if you have any feedback . |
@DorianZaccaria let me know once you have a multi-node setup running; we can take a look at the metrics together. |
Sure, I'm still in touch with mesosphere support to figure out why the cluster setup is failing. |
d2370d6
to
1e47e0a
Compare
@DorianZaccaria could you rebase your PR please ? it can't be merged right now. |
# project | ||
from checks import AgentCheck | ||
|
||
# 3rd party |
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.
tiny tiny nitpick but as per pep8 the import order should be:
#stdlib
#3p
#project
Great work @DorianZaccaria . |
6c285f9
to
bb4c654
Compare
@remh I think this one can be merged before the 5.4 freeze. |
@DorianZaccaria what's the status of the metric type updates ? |
* Add a check for mesos masters, only the leader will report metrics * Add a check for mesos slave, slaves will report metrics from the selected tasks only if the task is running on the node * Add a mocked tests for mesos integration
* Change mesos stats endpoint for versions above 0.22.0 * Simplify syntax * Update tests for @degemer refactor
a82e041
to
2476aa9
Compare
@remh Done and updated. |
for key_name, (metric_name, metric_func) in m.iteritems(): | ||
metric_func(self, metric_name, stats_metrics[key_name], tags=tags) | ||
|
||
self.SERVICE_CHECK_NEEDED = True |
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.
nitpick, but usually upper case variables are for constants which is not the case here.
Looks good! |
2476aa9
to
d036028
Compare
💥 👍 |
Changes Unknown when pulling d036028 on dorian/mesos into ** on master**. |
tasks only if the task is running on the node