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

[mesos_master] Fix key error when a metric is missing. #2500

Merged
merged 1 commit into from
May 16, 2016
Merged

[mesos_master] Fix key error when a metric is missing. #2500

merged 1 commit into from
May 16, 2016

Conversation

gphat
Copy link
Contributor

@gphat gphat commented May 13, 2016

What's this PR do?

Fixes a case where a missing metric can cause the mesos_master integration to report only a subset of metric values.

Motivation

Our version of Mesos — 0.21.0 — was missing a key master/tasks_error and getting a KeyError. This caused it to only report 20 of the possible 60 metrics it should've been collecting!

Notes

I didn't add any sort of logging for missing keys. Happy to do so if desired.

cc @rhwlo @antifuchs

@remh
Copy link
Contributor

remh commented May 16, 2016

Sounds reasonable. Thanks a lot for fixing it!

@remh remh merged commit c62ca64 into DataDog:master May 16, 2016
@remh remh added this to the 5.8.0 milestone May 16, 2016
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