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

added tokumx check by cloning and modifying mongo #933

Merged
merged 3 commits into from
May 20, 2014

Conversation

leifwalsh
Copy link
Contributor

  • fixed calculation of replication lag (and in mongo check)
  • added opcountersRepl (and in mongo check)
  • added tokumx-specific metrics present in tokumx 1.4.2
  • added some more replication info
  • added some sharding info (could use more in the future)
  • changed to MongoClient to keep up with modern pymongo usage
  • added db/collection/index stats with tags

- fixed calculation of replication lag (and in mongo check)
- added opcountersRepl (and in mongo check)
- added tokumx-specific metrics present in tokumx 1.4.2
- added some more replication info
- added some sharding info (could use more in the future)
- changed to MongoClient to keep up with modern pymongo usage
- added db/collection/index stats with tags
@remh
Copy link
Contributor

remh commented May 6, 2014

Thanks a lot @leifwalsh !

We will review really that really soon 👍

@leifwalsh
Copy link
Contributor Author

🤘

@leifwalsh
Copy link
Contributor Author

actually I have a couple more metrics to add, one second

@leifwalsh
Copy link
Contributor Author

ok, that's it

@remh remh added this to the 4.3.x milestone May 8, 2014
state of a mongo node"""

def get_state_description(state):
if state == 0: return 'Starting Up'
Copy link
Contributor

Choose a reason for hiding this comment

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

You should probably create a dictionary to do that, something like:

STATE_DESCRIPTIONS = {
0: 'Starting Up',
1: 'Primary',
...
}

and then you'll be able to do:

status = STATE_DESCRIPTIONS[state]

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was from the mongo checker, I don't really care how it's implemented. We can do it this way if you like.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah just realized that. It's fine then, i'll fix it, no worries.
Thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks.

(notes from code review in DataDog#933)
@remh
Copy link
Contributor

remh commented May 20, 2014

Thanks @leifwalsh !

remh added a commit that referenced this pull request May 20, 2014
added tokumx check by cloning and modifying mongo
@remh remh merged commit f7b1121 into DataDog:master May 20, 2014
@leifwalsh
Copy link
Contributor Author

Cool, thanks!

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.

2 participants