다음을 통해 공유


Azure Portal을 사용하여 Azure SQL 데이터베이스 및 Azure Synapse Analytics에 대한 경고 만들기

Applies to:Azure SQL DatabaseAzure Synapse Analytics

이 문서에서는 Azure Portal을 사용하여 Azure SQL 데이터베이스 및 Azure Synapse Analytics 전용 SQL 풀에서 경고를 설정하는 방법을 알아봅니다. 일부 메트릭(예: 데이터베이스 크기 또는 CPU 사용량)이 정의한 임계값에 도달하면 경고에서 이메일을 보내거나 webhook를 호출할 수 있습니다.

새 경고 규칙 설정

Azure 서비스 또는 Azure 서비스의 이벤트에 대한 모니터링 메트릭을 기반으로 경고를 받을 수 있습니다.

  • Metric values - The alert triggers when the value of a specified metric crosses a threshold you assign. For more information, see Metric alerts.
  • 활동 로그 이벤트 - 모든 이벤트에 대해 경고를 트리거하거나 특정 이벤트 수가 발생했을 때만 경고를 트리거할 수 있습니다. 자세한 내용은 활동 로그 경고를 참조하세요.
  • Resource health - An alert related to the resource health status events, including whether the event was platform or user-initiated. 자세한 내용은 리소스 상태 경고를 참조하세요.

다음을 포함하여 경고가 트리거할 때 수행할 여러 작업 유형을 구성할 수 있습니다.

  • 서비스 관리자 및 공동 관리자에게 메일 알림 보내기
  • Azure Resource Manager 역할을 포함하여 지정한 추가 이메일로 이메일을 보냅니다.
  • 음성 프롬프트를 사용하여 전화 걸기
  • 문자 메시지 보내기
  • Azure 모바일 앱 알림 보내기
  • 자동 Runbook 시작
  • Azure 함수 호출
  • Event Hubs 작업 시작
  • ITSM 호환 티켓 만들기
  • 논리 앱 작업 선택
  • 웹후크 또는 보안 웹후크 호출

다음을 통해 경고에 대한 정보를 구성하고 가져올 수 있습니다.

Azure Portal에서 새 경고 규칙 시작

  1. In the Azure portal, locate the resource you are interested in monitoring and select it.
  2. In the resource menu under Monitoring, select Alerts. 텍스트와 아이콘은 리소스마다 약간씩 다를 수 있습니다.
  3. Select the + Create button, then Alert rule.
  4. 경고 규칙 만들기 페이지에서 범위는 개별 리소스에 자동으로 구성됩니다.

    Note

    많은 독립적인 경고가 확산되는 것을 방지하려면 구독, 리소스 그룹 또는 Azure SQL 데이터베이스 논리 서버에 있는 형식의 모든 리소스에 대한 경고를 구성할 수 있습니다. Use the Scope tab to change the scope of the new alert rule.

Capture activity peaks or sustained resource stress with alerts on the Metrics signal category.

  1. On the Condition tab, select See all signals and Select a signal from the list of Metrics.

  2. Select the desired metric, for example CPU percentage. Select Apply.

  3. After you select a signal, the Alert logic options appear. 해당 신호에 대한 이 리소스의 최근 활동 미리 보기도 표시됩니다.

  4. Configure a Threshold type to determine when the alert will take action. Choose Aggregation type, Operator, and Threshold value as desired. 일반적인 임계값은 정적, 최대값, 보다 큼, 80%입니다.

    Field Description
    Threshold 임계값을 정적 값 또는 동적 값을 기준으로 평가해야 하는지 여부를 선택합니다.
    A static threshold evaluates the rule by using the threshold value that you configure.
    Dynamic thresholds use machine learning algorithms to continuously learn the metric behavior patterns and calculate the appropriate thresholds for unexpected behavior. 메트릭 경고에 대한 동적 임계값 사용에 대해 자세히 알아볼 수 있습니다.
    Operator 메트릭 값을 임계값과 비교할 연산자를 선택합니다.
    동적 임계값을 사용하는 경우 경고 규칙은 동일한 경고 규칙의 상한 및 하한 모두에 대한 메트릭 동작을 기반으로 맞춤형 임계값을 사용할 수 있습니다. 다음 연산자 중 하나를 선택합니다.
    - 상한 임계값보다 크거나 하한 임계값보다 낮습니다(기본값).
    - 상한 임계값보다 큽니다.
    - 하한 임계값보다 낮습니다.
    Aggregation type 데이터 포인트에 적용할 집계 함수(합계, 개수, 평균, 최소 또는 최대)를 선택합니다.
    Threshold value If you selected a static threshold, enter the threshold value for the condition logic.
    Unit If the selected metric signal supports different units, such as bytes, KB, MB, and GB, and if you selected a static threshold, enter the unit for the condition logic.
    Threshold sensitivity If you selected a dynamic threshold, enter the sensitivity level. 민감도 수준은 경고를 트리거하는 데 필요한 메트릭 계열 패턴과의 편차 정도에 영향을 줍니다.
    - High: Thresholds are tight and close to the metric series pattern. 가장 작은 편차에서 경고 규칙이 트리거되어 더 많은 경고가 발생합니다.
    - Medium: Thresholds are less tight and more balanced. 높은 민감도(기본값)보다 경고 수가 적습니다.
    - Low: Thresholds are loose, allowing greater deviation from the metric series pattern. 경고 규칙은 편차가 큰 경우에만 트리거되므로 경고 수가 줄어듭니다.
    Aggregation granularity 집계 형식 함수를 사용하여 데이터 포인트를 그룹화하는 데 사용되는 간격을 선택합니다. Choose an Aggregation granularity (period) that's greater than the Frequency of evaluation to reduce the likelihood of missing the first evaluation period of an added time series.
    평가 빈도 경고 규칙을 실행할 빈도를 선택합니다. 집계 세분성보다 작은 빈도를 선택하여 평가에 대한 슬라이딩 윈도우를 생성합니다.
  5. 평가 시기 아래에서 원하는 평가 빈도를 결정합니다. Use the Check every and Lookback period dropdown lists.

  6. Optionally, you can add multiple conditions for this alert, choose the Add condition alert if desired.

  7. 다음: 작업>을 선택합니다.

새 경고 규칙 만들기

  1. Select an existing Action group from the Select action groups pane, or Create action group in your subscription. 작업 그룹을 사용하면 경고 조건이 발생할 때 수행할 작업을 정의할 수 있습니다. 이 작업은 경고를 트리거할 때(예: 이메일 보내기) 발생하는 동작을 정의합니다.
    1. 또는 빠른 작업 사용 기능을 사용하여 새 작업 그룹을 만들고 이메일 또는 Azure 모바일 앱 알림 대상을 제공합니다.
  2. 다음: 세부 정보>를 선택합니다.
  3. 기본적으로 경고 규칙의 심각도는 3 - 정보 제공입니다. You can adjust the alert rule's Severity as desired.
  4. 경고 규칙 이름을 제공합니다. 선택 사항이지만 권장됩니다. 설명을 제공합니다.
  5. Under Advanced options:
    1. 경고 규칙 만들기를 완료하자마자 실행을 시작하려면 만들 때 사용을 확인합니다.
    2. 자동 해결 경고 옵션은 기본적으로 사용하도록 설정됩니다. 이렇게 하면 경고가 상태 저장됩니다. 즉, 조건이 더 이상 충족되지 않으면 경고가 해결됩니다.
  6. 완료되면 다음: 태그>를 선택합니다.
  7. Azure 태그 사용을 고려하세요. 예를 들어 리소스를 만든 사람을 식별하는 "소유자" 또는 "CreatedBy" 태그와 이 리소스가 프로덕션, 개발 등에 있는지 여부를 식별하는 "환경" 태그가 있습니다. 자세한 내용은 Azure 리소스에 대한 명명 및 태그 지정 전략 개발을 참조하세요.
  8. 검토 + 만들기를 선택합니다.
  9. Select Create. 곧 경고가 활성화됩니다.

경고 규칙 관리

Note

노이즈가 있는 경고를 표시하지 않도록 하려면 작업 규칙을 사용하여 경고 표시 안 함을 참조하세요.

Existing alerts need to be managed from the Alerts menu in the Azure portal resource menu. 기존 경고를 확인, 일시 중지, 활성화, 수정 및 삭제하려면

  1. On the Alerts pane of your Azure SQL Database, select Alert rules.

    cpu라는 새 경고를 보여 주는 Azure Portal의 스크린샷

  2. 개별 기존 경고 규칙을 선택하여 관리합니다. 기존 활성 규칙을 필요에 따라 수정하고 조정할 수 있습니다. 활성 규칙을 삭제하지 않고 일시 중지할 수도 있습니다.