Amazon Elastic Compute Cloud(EC2) 인스턴스 - Amazon CloudWatch

Amazon Elastic Compute Cloud(EC2) 인스턴스

다음 예는 Amazon EC2 인스턴스를 위한 JSON 형식의 구성 요소 구성을 보여줍니다.

중요

Amazon EC2 인스턴스가 stopped 상태가 되면 모니터링에서 제거됩니다. running 상태로 돌아갈 때 CloudWatch 애플리케이션 인사이트 콘솔의 애플리케이션 세부 정보 페이지의 모니터링되지 않는 구성 요소 목록에 추가됩니다. 애플리케이션에 대해 새 리소스의 자동 모니터링이 활성화된 경우 인스턴스가 다음 모니터링되는 구성 요소 목록에 추가됩니다 그러나 로그와 지표는 작업 로드에 대한 기본값으로 설정됩니다. 이전 로그 및 지표 구성은 저장되지 않습니다.

{ "alarmMetrics" : [ { "alarmMetricName" : "CPUUtilization", "monitor" : true }, { "alarmMetricName" : "StatusCheckFailed" } ], "logs" : [ { "logGroupName" : "my_log_group", "logPath" : "C:\\LogFolder\\*", "logType" : "APPLICATION", "monitor" : true }, { "logGroupName" : "my_log_group_2", "logPath" : "C:\\LogFolder2\\*", "logType" : "IIS", "encoding" : "utf-8" } ], "processes" : [ { "processName" : "my_process", "alarmMetrics" : [ { "alarmMetricName" : "procstat cpu_usage", "monitor" : true }, { "alarmMetricName" : "procstat memory_rss", "monitor" : true } ] } ], "windowsEvents" : [ { "logGroupName" : "my_log_group_3", "eventName" : "Application", "eventLevels" : [ "ERROR", "WARNING", "CRITICAL" ], "monitor" : true }, { "logGroupName" : "my_log_group_4", "eventName" : "System", "eventLevels" : [ "ERROR", "WARNING", "CRITICAL" ], "monitor" : true }], "alarms" : [ { "alarmName" : "my_instance_alarm_1", "severity" : "HIGH" }, { "alarmName" : "my_instance_alarm_2", "severity" : "LOW" } ], "subComponents" : [ { "subComponentType" : "AWS::EC2::Volume", "alarmMetrics" : [ { "alarmMetricName" : "VolumeQueueLength", "monitor" : "true" }, { "alarmMetricName" : "VolumeThroughputPercentage", "monitor" : "true" }, { "alarmMetricName" : "BurstBalance", "monitor" : "true" }] }] }