Skip to content

Instantly share code, notes, and snippets.

@przygode
Created September 21, 2012 05:29
Show Gist options
  • Save przygode/3759875 to your computer and use it in GitHub Desktop.
Save przygode/3759875 to your computer and use it in GitHub Desktop.
auto-scaling-CPUAlarmLow
{
"CPUAlarmLow": {
"Type": "AWS::CloudWatch::Alarm",
"Properties": {
"AlarmDescription": "Scale-down if CPU < 75% for 10 minutes",
"MetricName": "CPUUtilization",
"Namespace": "AWS/EC2",
"Statistic": "Average",
"Period": "60",
"EvaluationPeriods": "10",
"Threshold": "75",
"AlarmActions": [
{
"Ref": "AppServerScaleDownPolicy"
}
],
"Dimensions": [
{
"Name": "AutoScalingGroupName",
"Value": {
"Ref": "AppServerGroup"
}
}
],
"ComparisonOperator": "LessThanThreshold"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment