Have Questions?  Need Expert Answers?  JOIN LUNCH N' LEARNS!

Get Max CPU Utilization for Instance

Prev Next
Step Details
Introduced in Version9.0.0
Last Modified in Version9.0.0
LocationIntegration > Amazon AWS > Cloud Watch

The Get Max CPU Utilization for Instance step retrieves the maximum CPU utilization over a period of time for an EC2 instance.

Prerequisites 


Properties

Inputs

PropertyDescriptionData Type
RegionThe Amazon AWS Region the instance is located on.AmazonAWSRegion
EC2 Instance IdThe Id of the EC2 instance to retrieve maximum CPU utilization for.String
Start DateMarks the start date used for retrieval.DateTime
End DateMarks the end date used for retrieval.DateTime
PeriodDefines the period when data is gathered.Int32

Outputs

PropertyDescriptionData Type
DoneOutputs maximum CPU utilization in a defined instance.GetMetricDataResult


Common Errors

The Parameter 'Period' must be a value in the set [1, 5, 10, 20, 30]

If the period input is not one of the integers in the above set, the step will cause an error.

To correct this, change the period input to a value within this given set.

Exception Message:

DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Get Avg CPU Utilization for Instance 1[GetAvgCPUUtilizationForInstance] in flow [Step Library Flow]: Exception invoking method GetAvgCPUUtilizationForInstance on class CloudWatchSteps
 ---> DecisionsFramework.LoggedException: Exception invoking method GetAvgCPUUtilizationForInstance on class CloudWatchSteps
 ---> System.AggregateException: One or more errors occurred. (The parameter MetricDataQueries.member.1.MetricStat.Period must be a value in the set [ 1, 5, 10, 20, 30 ]. )
 ---> Amazon.CloudWatch.AmazonCloudWatchException: The parameter MetricDataQueries.member.1.MetricStat.Period must be a value in the set [ 1, 5, 10, 20, 30 ].
 ---> Amazon.Runtime.Internal.HttpErrorResponseException: Exception of type 'Amazon.Runtime.Internal.HttpErrorResponseException' was thrown. at Amazon.Runtime.HttpWebRequestMessage.ProcessHttpResponseMessage(HttpResponseMessage responseMessage)
 at Amazon.Runtime.HttpWebRequestMessage.GetResponseAsync(CancellationToken cancellationToken)
 at Amazon.Runtime.Internal.HttpHandler`1.InvokeAsync[T](IExecutionContext executionContext)
 at Amazon.Runtime.Internal.Unmarshaller.InvokeAsync[T](IExecutionContext executionContext)
 at Amazon.Runtime.Internal.ErrorHandler.InvokeAsync[T](IExecutionContext executionContext)
   --- End of inner exception stack trace ---

The Parameter EndTime must be greater than StartTime.

If the EndTime value is less than or equal to the StartTime, the step will cause an error.

To correct this, make the EndTime value greater than the StartTime value.

Exception Message:

DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Get Avg CPU Utilization for Instance 1[GetAvgCPUUtilizationForInstance] in flow [Step Library Flow]: Exception invoking method GetAvgCPUUtilizationForInstance on class CloudWatchSteps
 ---> DecisionsFramework.LoggedException: Exception invoking method GetAvgCPUUtilizationForInstance on class CloudWatchSteps
 ---> System.AggregateException: One or more errors occurred. (The parameter EndTime must be greater than StartTime. )
 ---> Amazon.CloudWatch.AmazonCloudWatchException: The parameter EndTime must be greater than StartTime.
 ---> Amazon.Runtime.Internal.HttpErrorResponseException: Exception of type 'Amazon.Runtime.Internal.HttpErrorResponseException' was thrown. at Amazon.Runtime.HttpWebRequestMessage.ProcessHttpResponseMessage(HttpResponseMessage responseMessage)
 at Amazon.Runtime.HttpWebRequestMessage.GetResponseAsync(CancellationToken cancellationToken)
 at Amazon.Runtime.Internal.HttpHandler`1.InvokeAsync[T](IExecutionContext executionContext)
 at Amazon.Runtime.Internal.Unmarshaller.InvokeAsync[T](IExecutionContext executionContext)
 at Amazon.Runtime.Internal.ErrorHandler.InvokeAsync[T](IExecutionContext executionContext)
   --- End of inner exception stack trace ---

Related Information

Related Articles:

AWS Cloudwatch