Accelerate alarm configuration examples
In the following example, the system creates an alarm for each disk attached to the matching Linux instance.
{ "AWS::EC2::Instance::Disk": { "LinuxDiskAlarm": { "Tag": { "Key": "ams:rt:mylinuxinstance", "Value": "true" }, "AlarmDefinition": { "MetricName": "disk_used_percent", "Namespace": "CWAgent", "Dimensions": [ { "Name": "InstanceId", "Value": "${EC2::InstanceId}" }, { "Name": "device", "Value": "${EC2::Disk::Device}" }, { "Name": "fstype", "Value": "${EC2::Disk::FSType}" }, { "Name": "path", "Value": "${EC2::Disk::Path}" } ], "AlarmName": "${EC2::InstanceId}: Disk Usage Too High - ${EC2::Disk::UUID}" ... } } } }
In the following example, the system creates an alarm for each disk attached to the matching Windows instance.
{ "AWS::EC2::Instance::Disk": { "WindowsDiskAlarm": { "Tag": { "Key": "ams:rt:mywindowsinstance", "Value": "true" }, "AlarmDefinition": { "MetricName": "LogicalDisk % Free Space", "Namespace": "CWAgent", "Dimensions": [ { "Name": "InstanceId", "Value": "${EC2::InstanceId}" }, { "Name": "objectname", "Value": "LogicalDisk" }, { "Name": "instance", "Value": "${EC2::Disk::Path}" } ], "AlarmName": "${EC2::InstanceId}: Disk Usage Too High - ${EC2::Disk::UUID}" ... } } } }