Amazon Managed Grafana 또는 오픈 소스 Grafana와 알림 통합 - Amazon Managed Service for Prometheus

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

Amazon Managed Grafana 또는 오픈 소스 Grafana와 알림 통합

Amazon Managed Service for Prometheus 내 Alertmanager에서 생성한 알림 규칙은 Amazon Managed GrafanaGrafana에서 전달되고 확인되므로 단일 환경에서 알림 규칙과 알림을 통합할 수 있습니다. Amazon Managed Grafana 내에서 알림 규칙 및 생성된 알림을 볼 수 있습니다.

사전 조건

Amazon Managed Service for Prometheus를 Amazon Managed Grafana에 통합하려면 먼저 다음 사전 조건을 충족해야 합니다.

  • Amazon Managed Service for Prometheus 및 IAM 역할을 프로그래밍 방식으로 생성하려면 기존 AWS 계정 및 IAM 자격 증명이 있어야 합니다.

    AWS 계정 및 IAM 자격 증명 생성에 대한 자세한 내용은 설정 섹션을 참조하세요.

  • Amazon Managed Service for Prometheus 워크스페이스가 있어야 하며 여기에 데이터를 수집하고 있어야 합니다. 새 워크스페이스을 설정하려면 WorkSpace 생성 섹션을 참조하세요. Alertmanager 및 Ruler 등의 Prometheus 개념에도 익숙해야 합니다. 이러한 항목에 대한 자세한 내용은 Prometheus 설명서를 참조하세요.

  • Amazon Managed Service for Prometheus에 Alertmanager 구성과 규칙 파일이 이미 구성되어 있어야 합니다. Amazon Managed Service for Prometheus의 Alertmanager에 대한 자세한 내용은 알림 관리자 섹션을 참조하세요. 규칙에 대한 자세한 설명은 기록 규칙 및 알림 규칙 섹션을 참조하십시오.

  • Amazon Managed Grafana를 설정했거나 Grafana의 오픈 소스 버전을 실행 중이어야 합니다.

  • Amazon Managed Grafana에는 Prometheus 리소스에 대한 다음과 같은 권한이 있어야 합니다. https://docs.aws.amazon.com/grafana/latest/userguide/AMG-manage-permissions.html에 설명된 서비스 관리형 또는 고객 관리형 정책에 추가해야 합니다.

    • aps:ListRules

    • aps:ListAlertManagerSilences

    • aps:ListAlertManagerAlerts

    • aps:GetAlertManagerStatus

    • aps:ListAlertManagerAlertGroups

    • aps:PutAlertManagerSilences

    • aps:DeleteAlertManagerSilence

Amazon Managed Grafana 설정

Amazon Managed Service for Prometheus 인스턴스에 이미 규칙 및 알림을 설정한 경우 Amazon Managed Grafana를 해당 알림에 대한 대시보드로 사용하도록 구성하는 작업은 전적으로 Amazon Managed Grafana 내에서 수행됩니다.

Amazon Managed Grafana를 알림 대시보드로 구성하려면
  1. 워크스페이스의 Grafana 콘솔을 엽니다.

  2. 구성에서 데이터 소스를 선택합니다.

  3. Prometheus 데이터 소스를 생성하거나 엽니다. 이전에 Prometheus 데이터 소스를 설정하지 않은 경우 Grafana에 Prometheus 데이터 소스 추가에서 자세한 내용을 참조하세요.

  4. Prometheus 데이터 소스에서 Alertmanager UI를 통한 알림 관리를 선택합니다.

  5. 데이터 소스 인터페이스로 돌아갑니다.

  6. 새 Alertmanager 데이터 소스를 생성합니다.

  7. Alertmanager 데이터 소스 구성 페이지에서 다음 설정을 추가합니다.

    • 구현Prometheus로 설정합니다.

    • URL 설정의 경우 Prometheus 워크스페이스의 URL을 사용하고 워크스페이스 ID 다음에 나오는 모든 항목을 제거한 다음, 끝에 /alertmanager를 추가합니다. 예: https://aps-workspaces.us-east1.amazonaws.com/workspaces/ws-example-1234-5678-abcd-xyz00000001/alertmanager.

    • 인증에서 SigV4Auth를 켭니다. 이렇게 하면 요청에 AWS 인증을 사용하도록 Grafana에 지시하게 됩니다.

    • SigV4Auth 세부 정보에서 기본 리전으로 Prometheus 인스턴스의 리전(예: us-east-1)을 입력합니다.

    • 기본 옵션을 true로 설정합니다.

  8. 저장 및 테스트를 선택합니다.

  9. 이제 Amazon Managed Service for Prometheus 알림이 Grafana 인스턴스에서 작동하도록 구성해야 합니다. Grafana 알림 페이지에서 Amazon Managed Service for Prometheus 인스턴스의 모든 알림 규칙, 알림 그룹(활성 알림 포함) 및 무음이 표시되는지 확인합니다.