기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.
CloudWatch Logs를 사용한 알림 관리자 문제 해결
CloudWatch Logs를 사용하여 Amazon Managed Service for Prometheus 이벤트 모니터링을 사용하여 알림 관리자 및 규칙 관리자 관련 문제를 해결할 수 있습니다. 이 섹션에는 알림 관리자 관련 문제 해결 항목이 포함되어 있습니다.
주제
활성 알림 경고
로그에 다음 경고가 포함된 경우
{ "workspaceId": "ws-efdc5b42-b051-11ec-b123-4567ac120002", "message": { "log": "too many alerts, limit: 1000", "level": "WARN" }, "component": "alertmanager" }
즉, 알림 관리자 활성 알림 할당량이 초과되었습니다.
취할 조치
할당량 증가를 요청하십시오. 에 로그인 AWS Management Console 하고 https://console.aws.amazon.com/servicequotas/
알림 집계 그룹 크기 경고
로그에 다음 경고가 포함된 경우
{ "workspaceId": "ws-efdc5b42-b051-11ec-b123-4567ac120002", "message": { "log": "Too many aggregation groups, cannot create new group for alert, groups=1000, limit=1000, alert=sample-alert", "level": "WARN" }, "component": "alertmanager" }
즉, 알림 관리자 알림 집계 그룹 크기 할당량이 초과되었습니다.
취할 조치
group_by
파라미터를 사용하여 알림 집계 그룹 크기를 줄입니다. 자세한 내용은 Prometheus 설명서의 라우팅 관련 설정을
할당량 증가 요청을 할 수도 있습니다. 에 로그인 AWS Management Console 하고 https://console.aws.amazon.com/servicequotas/
알림 크기가 너무 큼 경고
로그에 다음 경고가 포함된 경우
{ "workspaceId": "ws-efdc5b42-b051-11ec-b123-4567ac120002", "message": { "log": "alerts too big, total size limit: 20000000 bytes", "level": "WARN" }, "component": "alertmanager" }
즉, 크기 할당량에서 워크스페이스당 알림 관리자 알림이 초과되었습니다.
취할 조치
불필요한 주석과 레이블을 제거하여 알림 크기를 줄입니다.
빈 콘텐츠 경고
로그에 다음 경고가 포함된 경우
{ "workspaceId": "ws-abcd1234-ef56-78ab-cd90-1234abcd0000", "message": { "log": "Message has been modified because the content was empty." "level": "WARN" }, "component": "alertmanager" }
알림 관리자 템플릿이 아웃바운드 알림을 빈 메시지로 해결했음을 의미합니다.
취할 조치
알림 관리자 템플릿을 검증하고 모든 수신기 경로에 유효한 템플릿이 있는지 확인하세요.
잘못된 key/value
경고
로그에 다음 경고가 포함된 경우
{ "workspaceId": "ws-abcd1234-ef56-78ab-cd90-1234abcd0000", "message": { "log": "MessageAttributes has been removed because of invalid key/value, numberOfRemovedAttributes=1" "level": "WARN" }, "component": "alertmanager" }
키/값이 유효하지 않아 일부 메시지 속성이 제거되었음을 의미합니다.
취할 조치
메시지 속성을 채우는 데 사용 중인 템플릿을 다시 평가하여 유효한 SNS 메시지 속성으로 확인되는지 알아봅니다. 메시지를 Amazon SNS 주제로 검증하는 방법에 대한 자세한 내용은 SNS 주제 검증을 참조하세요.
메시지 제한 경고
로그에 다음 경고가 포함된 경우
{ "workspaceId": "ws-abcd1234-ef56-78ab-cd90-1234abcd0000", "message": { "log": "Message has been truncated because it exceeds size limit, originSize=266K, truncatedSize=12K" "level": "WARN" }, "component": "alertmanager" }
일부 메시지 크기가 너무 큰 것을 의미합니다.
취할 조치
알림 수신기 메시지 템플릿을 살펴보고 크기 제한에 맞도록 재작업하세요.
리소스 기반 정책 오류 없음
로그에 다음 오류가 포함된 경우
{ "workspaceId": "ws-abcd1234-ef56-78ab-cd90-1234abcd0000", "message": { "log": "Notify for alerts failed, AMP is not authorized to perform: SNS:Publish on resource: arn:aws:sns:us-west-2:12345:testSnsReceiver because no resource-based policy allows the SNS:Publish action" "level": "ERROR" }, "component": "alertmanager" }
즉, Amazon Managed Service for Prometheus에 지정된 SNS 주제로 알림을 제출할 권한이 없음을 의미합니다.
취할 조치
Amazon SNS 주제의 액세스 정책이 SNS 메시지를 주제에 전송할 수 있는 권한을 Amazon Managed Service for Prometheus에 부여하는지 검증합니다. aps.amazonaws.com
서비스(Amazon Managed Service for Prometheus)에 Amazon SNS 주제에 대한 액세스 권한을 부여하는 SNS 액세스 정책을 생성합니다. SNS 액세스 정책에 대한 자세한 내용은 Amazon Simple Notification Service 개발자 가이드에서 액세스 정책 언어 사용 및 Amazon SNS 액세스 제어의 예제 사례를 참조하세요.
비 ASCII 경고
로그에 다음 경고가 포함된 경우
{ "workspaceId": "ws-abcd1234-ef56-78ab-cd90-1234abcd0000", "message": { "log": "Subject has been modified because it contains control or non-ASCII characters." "level": "WARN" }, "component": "alertmanager" }
제목에 ASCII가 아닌 문자가 포함되어 있음을 의미합니다.
취할 조치
템플릿의 제목 필드에서 ASCII가 아닌 문자를 포함할 수 있는 레이블에 대한 참조를 제거합니다.
KMS를 호출할 권한이 없음
로그에 다음 AWS KMS 오류가 포함된 경우
{ "workspaceId": "ws-abcd1234-ef56-78ab-cd90-1234abcd0000", "message": { "log": "Notify for alerts failed, AMP is not authorized to call KMS", "level": "ERROR" }, "component": "alertmanager" }
취할 조치
Amazon SNS 주제를 암호화하는 데 사용되는 키의 키 정책이 Amazon Managed Service for Prometheus 서비스 보안 주체 aps.amazonaws.com
이 kms:GenerateDataKey*
및 kms:Decrypt
작업을 수행할 수 있도록 허용하는지 확인합니다. 자세한 내용을 알아보려면 SNS 주제에 대한AWS
KMS 권한을 참조하세요.