감지된 문제에 대한 알림 수신 - Amazon CloudWatch

감지된 문제에 대한 알림 수신

Amazon SNS 알림, Systems Manager OpsCenter 또는 CloudWatch Events를 사용하여 애플리케이션에서 감지된 문제에 대한 알림을 받을 수 있습니다.

감지된 문제에 대한 CloudWatch Application Insights Amazon SNS 알림

AWS Management Console 또는 AWS CLI를 사용하여 Amazon SNS 알림을 구성할 수 있습니다. AWS Management Console을 사용하여 알림을 설정하려면 다음 예제와 같이 필요한 Amazon SNS 권한이 있어야 합니다.

{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "sns:ListTopics", "sns:Subscribe", "sns:CreateTopic" ], "Resource": [ "*" ] } ] }

Amazon SNS 알림을 설정한 후 문제가 발생하거나 해결되면 이메일 알림을 받게 됩니다. 기존 문제에 새로운 관찰이 추가될 경우에도 알림이 수신됩니다.

다음 예제는 이메일 알림의 콘텐츠를 보여줍니다.

You are receiving this email because Problem "p-1234567" has been CREATED by Amazon CloudWatch Application Insights Problem Details: Problem URL: https:////console.aws.amazon.com/cloudwatch/home?region=us-east-1#settings:AppInsightsSettings/problemDetails?problemId=p-1234567 Problem Summary: Title of the problem Severity: HIGH Insights: Something specific is broken Status : RESOLVED AffectedResource: arn:aws:ec2:us-east-1:555555555555:host/testResource Region: us-east-1 RecurringCount: 0 StartTime: 2019-03-23T10:42:57.777Z LastUpdatedTime: 2019-03-23T21:49:37.777Z LastRecurrenceTime: StopTime: 2019-03-23T21:49:37.777Z Recent Issues - TelemetryArn:alarm1 StartTime: 2024-08-15T22:12:46.007Z StopTime: - TelemetryArn:log-group1 StartTime: 2024-08-15T22:12:46.007Z StopTime: 2024-08-15T22:12:46.007Z
Systems Manager를 사용하여 문제 알림을 수신하는 방법

AWS Systems Manager를 통한 작업. CloudWatch Application Insights는 Systems Manager OpsCenter와의 기본 통합 기능을 제공합니다. 애플리케이션에 이 통합을 사용하도록 선택하면 애플리케이션에서 감지된 모든 문제에 대한 OpsItem이 OpsCenter 콘솔에 생성됩니다. OpsCenter 콘솔에서, CloudWatch Application Insights에서 감지한 문제에 대한 요약된 정보를 보고 Systems Manager Automation 실행서를 선택하여 수정 작업을 수행하거나 애플리케이션에서 리소스 문제를 일으키는 Windows 프로세스를 추가로 식별할 수 있습니다.

CloudWatch Events를 사용하여 문제 알림을 수신하는 방법

CloudWatch 콘솔에서 왼쪽 탐색 창의 [이벤트(Events)] 아래에서 [규칙(Rules)]을 선택합니다. 규칙 페이지에서 규칙 생성을 선택합니다. [서비스 이름(Service Name)] 드롭다운 목록에서 [Amazon CloudWatch Application Insights]를 선택하고 [이벤트 유형(Event Type)]을 선택합니다. 그런 다음 Add target(대상 추가)을 선택하고 대상 및 파라미터(예: SNS 주제 또는 Lambda 함수)를 선택합니다.