Domanda

I'm able to work with the metric GroupInServiceInstances quietly. got after enable euscale-enable-metrics-collection groupname -g 1minute

But I can not work with the metric of CPUUtilization of the AWS/EC2, the alarm does not attend the metric, the state is only INSUFFICIENT_DATA. I noticed that when running the command euscale-describe-metric-collection-types shows nothing AWS/EC2, but only the AWS/ScalingGroup, see:

METRIC-COLLECTION-TYPE GroupDesiredCapacity

METRIC-COLLECTION-TYPE GroupInServiceInstances

METRIC-COLLECTION-TYPE GroupMaxSize

METRIC-COLLECTION-TYPE GroupMinSize

METRIC-COLLECTION-TYPE GroupPendingInstances

METRIC-COLLECTION-TYPE GroupTerminatingInstances

METRIC-COLLECTION-TYPE GroupTotalInstances

GRANULARITY-METRIC-TYPE 1minute

should be displayed:

METRIC-COLLECTION-TYPE CPUUtilization

GRANULARITY-METRIC-TYPE Percent

So, what I do to the alarm of the metric CPUUtilization AWS/EC2 work?

È stato utile?

Soluzione

The euca2ools euscale-* commands are for use with the Auto Scaling service, the euscale-describe-metric-collection-types command is the DescribeMetricCollectionTypes action, and only returns metrics for Auto Scaling.

To enable EC2 metrics in Eucalyptus you have to enable metrics collection for the instance (euca-monitor-instances) and you should also ensure that when working with the CPUUtilization CloudWatch metric you specify the unit type of Percent.

Altri suggerimenti

Can you please try EucaLobo https://github.com/viglesiasce/EucaLobo? I remember I had trouble with command line arguments at first.

I found the reason. The alarm was creating from graphic interface when creating a command worked. I found that the GUI does not assign the unit (Percent) in alarm, which causes it to not collect the metrics percentage.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top