[pkg-eucalyptus-commits] [SCM] managing cloud instances for Eucalyptus branch, master, updated. 3.0.0-alpha3-257-g1da8e3a

Garrett Holmstrom gholms at fedoraproject.org
Sun Jun 16 02:30:36 UTC 2013


The following commit has been merged in the master branch:
commit f6a340167ac8cef0d3366ff09a7ed922f686146e
Author: Garrett Holmstrom <gholms at fedoraproject.org>
Date:   Wed Mar 6 16:35:07 2013 -0800

    Implement EnableMetricsCollection
    
    Fixes TOOLS-225

diff --git a/bin/kilo-enable-metrics-collection b/bin/kilo-enable-metrics-collection
new file mode 100755
index 0000000..c53b475
--- /dev/null
+++ b/bin/kilo-enable-metrics-collection
@@ -0,0 +1,6 @@
+#!/usr/bin/python -tt
+
+import euca2ools.commands.autoscaling.enablemetricscollection
+
+if __name__ == '__main__':
+    euca2ools.commands.autoscaling.enablemetricscollection.EnableMetricsCollection.run()
diff --git a/euca2ools/commands/autoscaling/resumeprocesses.py b/euca2ools/commands/autoscaling/enablemetricscollection.py
similarity index 75%
copy from euca2ools/commands/autoscaling/resumeprocesses.py
copy to euca2ools/commands/autoscaling/enablemetricscollection.py
index 6bf8859..767ac08 100644
--- a/euca2ools/commands/autoscaling/resumeprocesses.py
+++ b/euca2ools/commands/autoscaling/enablemetricscollection.py
@@ -33,11 +33,12 @@ from euca2ools.commands.argtypes import delimited_list
 from euca2ools.commands.autoscaling import AutoScalingRequest
 
 
-class ResumeProcesses(AutoScalingRequest):
-    DESCRIPTION = "Resume an auto-scaling group's auto-scaling processes"
-    ARGS = [Arg('AutoScalingGroupName', metavar='NAME',
+class EnableMetricsCollection(AutoScalingRequest):
+    DESCRIPTION = "Enable monitoring of an auto-scaling group's group metrics"
+    ARGS = [Arg('AutoScalingGroupName', metavar='ASGROUP',
                 help='name of the auto-scaling group to update (required)'),
-            Arg('--processes', dest='ScalingProcesses.member',
-                metavar='PROCESS,PROCESS,...', type=delimited_list(','),
-                help='''comma-separated list of auto-scaling processes to
-                resume (default: all processes)''')]
+            Arg('-g', '--granularity', dest='Granularity', required=True,
+                help='granularity at which to collect metrics (required)'),
+            Arg('-m', '--metrics', dest='Metrics.member',
+                metavar='METRIC,METRIC,...', type=delimited_list(','),
+                help='list of metrics to collect (default: all metrics)')]

-- 
managing cloud instances for Eucalyptus



More information about the pkg-eucalyptus-commits mailing list