-
Notifications
You must be signed in to change notification settings - Fork 812
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
Conversation
leifwalsh
commented
May 6, 2014
- 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
Thanks a lot @leifwalsh ! We will review really that really soon 👍 |
🤘 |
actually I have a couple more metrics to add, one second |
ok, that's it |
state of a mongo node""" | ||
|
||
def get_state_description(state): | ||
if state == 0: return 'Starting Up' |
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.
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]
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 was from the mongo checker, I don't really care how it's implemented. We can do it this way if you like.
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.
Yeah just realized that. It's fine then, i'll fix it, no worries.
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.
Thanks.
(notes from code review in DataDog#933)
Thanks @leifwalsh ! |
added tokumx check by cloning and modifying mongo
Cool, thanks! |