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

/summary per-pool metrics #65

Merged
merged 1 commit into from
Mar 6, 2015

Conversation

sschneid
Copy link
Contributor

@sschneid sschneid commented Mar 6, 2015

This commit also consolidates the 'get_boot_metrics' and
'get_clone_metrics' methods into a single parameterized
'get_task_metrics' method.

@sschneid
Copy link
Contributor Author

sschneid commented Mar 6, 2015

This is deployed on vmpooler-dev. Verification of my maths is probably needed.

@@ -240,13 +270,25 @@ def validate_date_str(date_str)
result[task][:duration][:total] += daily[task][:duration][:total]

if result[task][:count][:total] > 0
Copy link
Contributor

Choose a reason for hiding this comment

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

This block should be outside the loop so that the total duration average is only calculated once, not altered each day.

@sschneid sschneid force-pushed the per_pool_summary_metrics branch from 1866144 to 270f586 Compare March 6, 2015 22:27
This commit also consolidates the 'get_boot_metrics' and
'get_clone_metrics' methods into a single parameterized
'get_task_metrics' method.
@sschneid sschneid force-pushed the per_pool_summary_metrics branch from 270f586 to d1e4acb Compare March 6, 2015 22:40
colinPL added a commit that referenced this pull request Mar 6, 2015
@colinPL colinPL merged commit 6409ded into puppetlabs:master Mar 6, 2015
@sschneid sschneid deleted the per_pool_summary_metrics branch March 6, 2015 22:54
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