

기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.

# Amazon Managed Service for Prometheus에서 알림 시각화
<a name="amazon-amp-configure-alerts"></a>

**참고**  
Amazon Managed Service for Prometheus 데이터 소스는 Amazon Managed Grafana 버전 12부터 사용할 수 있습니다.

이미 연결된 Prometheus 데이터 소스에 대해 Alertmanager 데이터 소스를 구성하여 Amazon Managed Grafana에서 Amazon Managed Service for Prometheus 또는 Prometheus 알림을 시각화할 수 있습니다.

**사전 조건**

Amazon Managed Service for Prometheus와 함께 사용하도록 Alertmanager를 구성하려면 다음 사전 조건을 완료해야 합니다.
+ 수집된 지표와 하나 이상의 알림 또는 기록 규칙이 구성된 [Amazon Managed Service for Prometheus](https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-onboard-create-workspace.html) 인스턴스. 워크스페이스의 URL이 필요합니다. (Amazon Managed Service for Prometheus의 워크스페이스 세부 정보에서 **엔드포인트** URL을 볼 수 있습니다. 워크스페이스 URl은 끝에 `api/v1/remote_write`가 없는 엔드포인트 URL입니다.)
+ [데이터 소스로 구성](amazon-prometheus-data-source.md)된 Prometheus 인스턴스를 포함하여 [생성](AMG-create-workspace.md)된 Amazon Managed Grafana 워크스페이스.
+ Amazon Managed Grafana에는 Prometheus 리소스에 대한 다음과 같은 권한이 있어야 합니다. [AWS 데이터 소스에 대한 Amazon Managed Grafana 권한 및 정책](AMG-manage-permissions.md)에 설명된 서비스 관리형 또는 고객 관리형 정책에 추가해야 합니다.
  + `aps:ListRules`
  + `aps:ListAlertManagerSilences`
  + `aps:ListAlertManagerAlerts`
  + `aps:GetAlertManagerStatus`
  + `aps:ListAlertManagerAlertGroups`
  + `aps:PutAlertManagerSilences`
  + `aps:DeleteAlertManagerSilence`

**Amazon Managed Service for Prometheus와 함께 사용하도록 Alertmanager 데이터 소스를 구성하는 방법**

1. Grafana 콘솔의 Grafana 메뉴에서 **구성** 아래 **데이터 소스** 페이지를 선택하세요.

1. **데이터 소스 추가**를 선택하고 데이터 소스 유형 목록에서 **Alertmanager**를 선택하세요.

1. 새 데이터 소스에 대해 다음 정보를 제공합니다.
   + **구현 **에서 **Prometheus**를 선택하세요.
   + **HTTP**의 **URL**에 Prometheus 워크스페이스 URL(`alertmanager`가 추가됨)을 제공합니다. 예를 들어 `https://aps-workspaces.us-east1.amazonaws.com/workspaces/ws-example-1234-5678-abcd-xyz00000001/alertmanager`입니다.
   + **인증**에서 **SigV4Auth**를 켭니다. 이렇게 하면 요청에 [AWS 인증](https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html)을 사용하도록 Grafana에 지시하게 됩니다.
   + **SigV4Auth 세부 정보**에서 **기본 리전**으로 Prometheus 인스턴스의 리전(예: `us-east-1`)을 입력합니다.

1. **저장 및 테스트**를 선택하여 데이터 소스 설정을 완료하세요.

   데이터 소스가 올바르게 설정된 경우 **상태 확인 통과** 메시지가 표시됩니다.

**새 Alertmanager 데이터 소스를 Prometheus 데이터 소스에 연결하는 방법**

1. Grafana 콘솔의 Grafana 메뉴에서 **구성** 아래 **데이터 소스** 페이지를 선택하세요.

1. Amazon Managed Service for Prometheus의 원본 데이터 소스를 선택하고 **알림 UI를 통해 알림 관리** 토글 스위치를 켜세요.

1. **저장 및 테스트**를 선택하여 데이터 소스 구성을 완료하세요.