> For the complete documentation index, see [llms.txt](https://practice.nhncloud.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://practice.nhncloud.com/how-to/monitoring/cloud-monitoring-alarm-policy.md). Agents can also search and read this documentation through its [MCP server](https://practice.nhncloud.com/~gitbook/mcp).

# Cloud Monitoring에서 임계치 기반 알림 설정하기

## Cloud Monitoring에서 임계치 기반 알림 설정하기

## 시작하기 전에

Cloud Monitoring은 인스턴스를 비롯한 NHN Cloud 리소스의 시스템 및 서비스 지표를 자동으로 수집하고 알림을 제공하는 서비스입니다. 대시보드와 차트를 생성해 실시간으로 지표를 조회할 수 있으며, 임계치를 설정해 이를 초과한 지표에 대한 알림을 이메일, SMS 등으로 전파할 수 있습니다.

여기에서는 인스턴스의 CPU 사용률에 임계치 기반 알림을 설정하고, 임계치를 초과하면 등록된 알림 수신 그룹에 이메일이나 SMS로 알림을 받을 수 있도록 구성하는 방법을 살펴봅니다.

## 사전 준비하기

* Cloud Monitoring은 프로젝트 생성 시 기본으로 제공되는 서비스이므로 별도 활성화가 필요하지 않습니다.
* 알림을 수신할 **알림 수신 그룹**이 프로젝트에 등록되어 있어야 합니다. 알림 수신 그룹은 **프로젝트 관리 > 알림 수신 그룹 관리**에서 생성할 수 있습니다. 자세한 내용은 [콘솔 정책 가이드](https://docs.nhncloud.com/ko/nhncloud/ko/console-guide/#notification-receiver-group-management)를 참고하세요.

## 알림 생성하기

1. NHN Cloud 콘솔에서 **Monitoring > Cloud Monitoring**을 클릭하세요.
2. **알림 관리** > **알림 설정** 탭에서 **+ 알림 생성**을 클릭하세요.

### 기본 정보 입력하기

**기본 정보** 영역에서 알림의 기본 정보를 입력합니다.

* **이름**: 알림을 식별할 수 있는 이름을 입력합니다. 최대 40자까지 입력할 수 있습니다. 운영 중 알림이 여러 개 쌓이므로 대상과 조건을 한눈에 알 수 있는 이름이 좋습니다(예: `web-server-cpu-high`).
* **설명**: 알림의 목적이나 조건을 간단히 입력합니다. 최대 100자까지 입력할 수 있습니다.
* **서비스**: 모니터링할 서비스를 선택합니다. 이 시나리오에서는 **Instance**를 선택합니다.

### 알림 조건 설정하기

**알림 설정** 영역에서 어떤 지표가 어떤 조건을 충족하면 알림을 발생시킬지 정합니다.

1. **리소스 유형** 목록에서 **CPU**를 선택하세요. Instance 서비스의 리소스 유형에는 CPU, Memory, Disk, Network, System, Process, Swap 등이 있습니다. 신규 Agent가 설치된 인스턴스의 경우 CPU (New), Memory (New) 등 "(New)" 리소스 유형도 표시됩니다.
2. **지표** 목록에서 **CPU 사용률**을 선택하세요. CPU 리소스 유형의 지표에는 CPU 사용률, 코어별 CPU 사용률, CPU 평균 부하(1m/5m/15m), CPU 상세(user/nice/system/iowait) 등이 있습니다. 지표를 선택하면 하단에 필터와 조건을 설정하는 영역이 나타납니다.
3. (선택) **필터**를 설정합니다. 특정 인스턴스나 리전에만 알림을 적용하려면 **+ 추가**를 클릭해 필터를 추가합니다.

   * **레이블**: **인스턴스** 또는 **리전**을 선택합니다.
   * **연산자**: `=`을 선택합니다.
   * **조건**: 대상 인스턴스 이름 또는 리전 코드를 선택합니다.
   * **저장**을 클릭합니다.

   필터를 설정하지 않으면 해당 서비스의 모든 인스턴스에 알림이 적용됩니다.
4. **조건**에서 **추가**를 클릭한 뒤 알림 발생 조건을 설정합니다.

   * **비교 방법**: `>=`(이상)을 선택합니다.
   * **임계치**: `80`을 입력합니다. 소수점도 입력할 수 있습니다.
   * **지속 시간**: `5`를 입력합니다. 단위는 분입니다.
   * **저장**을 클릭합니다.

   이 설정은 CPU 사용률이 80% 이상인 상태가 5분 이상 지속되면 알림을 발생시킵니다. 일시적인 부하 급증으로 불필요한 알림이 발생하는 것을 방지하려면 지속 시간을 적절히 설정하세요.

{% hint style="info" %}
비교 방법은 `>`(초과), `<`(미만), `>=`(이상), `<=`(이하), `=`(같음), `!=`(같지 않음)을 지원합니다. 조건은 하나의 지표에 여러 개 추가할 수 있으며, 지표 항목도 복수로 선택할 수 있습니다.
{% endhint %}

### 알림 수신 대상 지정하기

**알림 수신 대상** 영역에서 알림을 받을 수신 그룹을 선택합니다.

목록에서 알림을 수신할 그룹의 **추가** 체크박스를 선택하세요. 1개 이상의 수신 그룹을 선택해야 합니다.

수신 그룹에 등록된 멤버에게 이메일과 SMS로 알림이 발송됩니다.

{% hint style="info" %}

* 알림 수신 그룹은 **프로젝트 관리 > 알림 수신 그룹 관리**에서 관리할 수 있습니다. 자세한 내용은 [콘솔 정책 가이드](https://docs.nhncloud.com/ko/nhncloud/ko/console-guide/#notification-receiver-group-management)를 참고하세요.
* 웹훅으로 알림을 받으려면 알림 수신 그룹에 **커스텀 웹훅**을 설정하세요. 기본 웹훅은 Cloud Monitoring에서 지원하지 않습니다.
  {% endhint %}

모든 설정을 완료했다면 화면 하단의 **저장**을 클릭하세요. **알림 설정** 목록에 생성한 알림이 추가됩니다.

## 동작 확인하기

알림이 정상적으로 동작하는지 확인하려면 다음을 수행합니다.

1. **알림 관리 > 알림 설정** 탭에서 생성한 알림의 **알림 사용 여부** 토글이 활성화되어 있는지 확인합니다.
2. **알림 발생 이력** 탭으로 이동합니다. 알림명, 알림 상태, 지표 항목, 발생 시간 등의 필터로 이력을 조회할 수 있습니다.
3. 설정한 조건이 충족되면 알림 발생 이력에 기록이 추가됩니다. 각 이력에서 **보기**를 클릭하면 발생 일시, 지속 시간, 결괏값, 발생 위치, 알림 발송 결과를 상세하게 확인할 수 있습니다.

{% hint style="info" %}
테스트를 위해 임계치를 낮게(예: CPU 사용률 1% 이상, 지속 시간 1분) 설정하면 알림이 빠르게 발생하므로 동작을 확인한 뒤 원래 값으로 수정하세요.
{% endhint %}

{% hint style="info" %}
대시보드에서 특정 인스턴스의 지표가 표시되지 않는 경우 다음 항목을 확인하세요.

* 모니터링 Agent가 인스턴스에 설치되어 정상 실행 중인지 확인합니다. Linux에서는 `systemctl status nhncloud-telegraf`(신규 Agent) 또는 `systemctl status toast-sysmon`(기존 Agent), Windows에서는 `Get-Service -Name "nhncloud-telegraf"` 또는 `Get-Service -Name "toastmon"`으로 확인할 수 있습니다.
* 인스턴스의 보안 그룹(**Network > Security Groups**)에서 Agent가 지표를 전송하는 데 필요한 링크로컬 주소(169.254.169.231) 통신이 차단되지 않았는지 확인합니다.
* (New) 리소스 유형의 지표가 보이지 않으면 신규 Agent 설치 여부를 확인하세요. 기존 Agent와 신규 Agent는 지원하는 지표가 다릅니다. 자세한 내용은 [Instance 신규 지표 연동 가이드](https://docs.nhncloud.com/ko/Monitoring/Cloud%20Monitoring/ko/new-instance-metric/)를 참고하세요.
  {% endhint %}

## 응용하기

<table data-view="cards"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><i class="fa-hard-drive">:hard-drive:</i></td><td><strong>메모리·디스크 알림 추가</strong></td><td>같은 방법으로 리소스 유형을 <strong>Memory</strong>나 <strong>Disk</strong>로 변경하면 메모리 사용률, 디스크 사용률에 대한 알림도 설정할 수 있습니다.</td><td><a href="https://docs.nhncloud.com/ko/Monitoring/Cloud%20Monitoring/ko/console-guide/#notification-settings">https://docs.nhncloud.com/ko/Monitoring/Cloud%20Monitoring/ko/console-guide/#notification-settings</a></td></tr><tr><td><i class="fa-layer-group">:layer-group:</i></td><td><strong>여러 조건 조합</strong></td><td>하나의 알림에 CPU 사용률과 메모리 사용률 지표를 함께 추가하면 두 지표를 동시에 감시할 수 있습니다. 지표 항목의 복수 선택과 필터 설정에 대한 자세한 내용은 알림 설정을 참고하세요.</td><td><a href="https://docs.nhncloud.com/ko/Monitoring/Cloud%20Monitoring/ko/console-guide/#notification-settings">https://docs.nhncloud.com/ko/Monitoring/Cloud%20Monitoring/ko/console-guide/#notification-settings</a></td></tr><tr><td><i class="fa-chart-line">:chart-line:</i></td><td><strong>대시보드에 위젯 추가하기</strong></td><td>대시보드에서 <strong>+ 위젯 추가</strong>를 클릭하면 서비스와 지표를 선택해 모니터링 위젯을 구성할 수 있습니다. 대시보드당 최대 12개의 위젯을 추가할 수 있으며, 편집 모드에서 위젯을 드래그해 위치와 크기를 조정할 수 있습니다.</td><td><a href="https://docs.nhncloud.com/ko/Monitoring/Cloud%20Monitoring/ko/console-guide/#create-a-dashboard">https://docs.nhncloud.com/ko/Monitoring/Cloud%20Monitoring/ko/console-guide/#create-a-dashboard</a></td></tr></tbody></table>

## 용어 알아보기

<table data-full-width="false"><thead><tr><th width="168">용어</th><th width="600">설명</th></tr></thead><tbody><tr><td>임계치</td><td>알림을 발생시키는 기준값입니다. 지표가 설정한 비교 조건(이상, 이하, 초과, 미만 등)을 충족하면 알림이 발생합니다.</td></tr><tr><td>리소스 유형</td><td>모니터링 지표를 분류하는 상위 카테고리입니다. Instance 서비스의 경우 CPU, Memory, Disk, Network 등이 있습니다.</td></tr><tr><td>지표</td><td>리소스 유형 하위의 개별 모니터링 항목입니다. 예를 들어 CPU 리소스 유형에는 CPU 사용률, CPU 평균 부하 등의 지표가 있습니다.</td></tr><tr><td>필터</td><td>알림 적용 범위를 특정 인스턴스나 리전으로 좁히는 조건입니다. 설정하지 않으면 해당 서비스의 모든 인스턴스에 알림이 적용됩니다.</td></tr><tr><td>지속 시간</td><td>조건 충족 상태가 유지되어야 알림이 발생하는 최소 시간(분 단위)입니다. 일시적인 부하 급증에 의한 불필요한 알림을 방지합니다.</td></tr><tr><td>알림 수신 그룹</td><td>알림을 받을 멤버를 묶어 관리하는 그룹입니다. 프로젝트 관리 > 알림 수신 그룹 관리에서 생성할 수 있습니다.</td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://practice.nhncloud.com/how-to/monitoring/cloud-monitoring-alarm-policy.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
