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 Cloudwatch reporting #144

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

burdandrei
Copy link

for replicaLag, LockPercentage and current_lock

for replicaLag, LockPercentage and current_lock
@burdandrei
Copy link
Author

Hi, we're running Mongo ReplicaSet in AWS, and CloudWatch is our primary monitoring resource. Thought it could be cool to integrate some simultaneous CloudWatch reporting.

import optparse
import textwrap
import re
import os
import commands
from boto.ec2.cloudwatch import CloudWatchConnection
Copy link
Owner

Choose a reason for hiding this comment

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

this will break the plugin for a lot of people that don't have boto installed.. we should wrap it in a try/except to enable the check later on or not

Copy link
Author

Choose a reason for hiding this comment

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

got you, will wrap it inside def

Moved all the imports inside cloudwatch-related definitions to avoid
dependency issues
@burdandrei
Copy link
Author

Wrapped all the additions imports inside definitions to avoid dependency issues

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