Customer-grouped Amazon EC2 instances
The following example shows a component configuration in JSON format for customer-grouped Amazon EC2 instances.
{ "subComponents": [ { "subComponentType": "AWS::EC2::Instance", "alarmMetrics": [ { "alarmMetricName": "CPUUtilization", }, { "alarmMetricName": "StatusCheckFailed" } ], "logs": [ { "logGroupName": "my_log_group", "logPath": "C:\\LogFolder\\*", "logType": "APPLICATION", } ], "processes": [ { "processName": "my_process", "alarmMetrics": [ { "alarmMetricName": "procstat cpu_usage", "monitor": true }, { "alarmMetricName": "procstat memory_rss", "monitor": true } ] } ], "windowsEvents": [ { "logGroupName": "my_log_group_2", "eventName": "Application", "eventLevels": [ "ERROR", "WARNING", "CRITICAL" ] } ] }, { "subComponentType": "AWS::EC2::Volume", "alarmMetrics": [ { "alarmMetricName": "VolumeQueueLength", }, { "alarmMetricName": "BurstBalance" } ] } ], "alarms": [ { "alarmName": "my_alarm", "severity": "MEDIUM" } ] }