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

Create a common module for shared rackspace monitoring functionality #16

Merged
merged 4 commits into from
Oct 12, 2015

Conversation

eljrax
Copy link
Contributor

@eljrax eljrax commented Sep 4, 2015

A stab at removing the duplicated code from core_plugins/raxmon.py and core_plugins/raxmon_autoscale.py and moving it to a shared module.

@jon-walton
Copy link
Contributor

i'll try find some time to go through this in the next few weeks

@eljrax
Copy link
Contributor Author

eljrax commented Oct 6, 2015

@jon-walton bump. If you're still strapped for time, I can have someone here review it and I can merge myself?

if entity.agent_id in active_servers]


def add_entity_checks(entities, check_type, metric_name, check_config={},
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not a fan of the mutable default argument check_config={} can pyrax handle a None for check_type in create_check() ? if not, maybe give pyrax check_type=check_type or {}

@jon-walton
Copy link
Contributor

@eljrax sorry I completely forgot. looks fine apart from that mutable default arg

@eljrax
Copy link
Contributor Author

eljrax commented Oct 12, 2015

Fair comment! This is only ever called once, and both modules using it sets the default, so this never popped up.

Changed to None, since pyrax handles that fine.

eljrax added a commit that referenced this pull request Oct 12, 2015
Create a common module for shared rackspace monitoring functionality
@eljrax eljrax merged commit 766c378 into rackerlabs:devel Oct 12, 2015
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

2 participants