Monitoring > Cloud Monitoring > Instance 신규 지표 연동 가이드

개요

Cloud Monitoring 서비스에서 Instance의 상세 지표를 수집하려면 신규 Agent를 설치해야 합니다. 신규 Agent는 기존 Agent와는 별개로 동작하며, 더 정확하고 상세한 인스턴스 지표를 제공합니다.

[주의] 오토 스케일 그룹에 속한 인스턴스의 경우 오토 스케일링 기능이 정상 동작하지 않을 수 있습니다.

전체 진행 순서는 다음과 같습니다. 1. 신규 Agent 설치 2. 구 Agent 삭제(선택 사항)

신규 Agent 설치 가이드

Linux 인스턴스 Agent 설치

설치 스크립트

rm -f ./install-nhncloud-telegraf.sh
curl -s -o install-nhncloud-telegraf.sh 'http://169.254.169.231/monitoring/cloud-agent/linux-amd64/install-nhncloud-telegraf.sh'
chmod 755 ./install-nhncloud-telegraf.sh
sudo ./install-nhncloud-telegraf.sh

설치 확인

sudo systemctl status nhncloud-telegraf

Windows 인스턴스 Agent 설치

  • PowerShell을 관리자 권한으로 실행
  • 시작 메뉴에서 PowerShell을 검색합니다.
  • Windows PowerShell을 마우스 오른쪽 버튼으로 클릭한 뒤 관리자 권한으로 실행을 선택합니다.

설치 스크립트

Remove-Item install-nhncloud-telegraf.ps1 -ErrorAction SilentlyContinue
Invoke-WebRequest -Uri 'http://169.254.169.231/monitoring/cloud-agent/windows-amd64/install-nhncloud-telegraf.ps1' -OutFile 'install-nhncloud-telegraf.ps1'
powershell -ExecutionPolicy Bypass -File install-nhncloud-telegraf.ps1

설치 확인

Get-Service -Name "nhncloud-telegraf"

구 Agent 삭제 가이드(선택 사항)

[참고] 신규 Agent와 구 Agent를 동시에 사용할 수도 있습니다.

기존 System Monitoring Agent를 제거하기 위한 삭제 가이드입니다. 신규 Agent와 구 Agent는 동시에 설치되어 있어도 문제없이 동작합니다.

삭제 시 주의 사항

  • 삭제 전 필수 확인: 신규 Agent가 정상적으로 설치되고 동작하는지 확인

Linux 인스턴스 구 Agent 삭제

삭제 스크립트

curl -s -o uninstall-sysmon-agent.sh 'http://169.254.169.231/monitoring/cloud-agent/linux-amd64/uninstall-sysmon-agent.sh'
chmod 755 ./uninstall-sysmon-agent.sh
sudo ./uninstall-sysmon-agent.sh

삭제 확인

  • 구 Agent 서비스 상태 확인(서비스가 없어야 정상)
sudo systemctl status toast-sysmon

Windows 인스턴스 구 Agent 삭제

삭제 스크립트

& "C:\Program Files (x86)\NHN\TOAST\uninst.exe"

삭제 확인

  • 구 Agent 프로세스 종료 확인
Get-Process -Name "toastmon" -ErrorAction SilentlyContinue

신규 Agent 삭제(필요시)

Linux 인스턴스 신규 Agent 삭제

삭제 스크립트
rm -f ./uninstall-nhncloud-telegraf.sh
curl -s -o uninstall-nhncloud-telegraf.sh 'http://169.254.169.231/monitoring/cloud-agent/linux-amd64/uninstall-nhncloud-telegraf.sh'
chmod 755 ./uninstall-nhncloud-telegraf.sh
sudo ./uninstall-nhncloud-telegraf.sh

Windows 인스턴스 신규 Agent 삭제

삭제 스크립트
Remove-Item uninstall-nhncloud-telegraf.ps1 -ErrorAction SilentlyContinue
Invoke-WebRequest -Uri 'http://169.254.169.231/monitoring/cloud-agent/windows-amd64/uninstall-nhncloud-telegraf.ps1' -OutFile 'uninstall-nhncloud-telegraf.ps1'
powershell -ExecutionPolicy Bypass -File uninstall-nhncloud-telegraf.ps1

Metric Dictionary

지표명 리소스명 기본 범례(Legend) 단위(Unit)
CPU 사용률 (%) CPU (New) {{nhncloud_instance_id}} 백분율(0-100)
CPU 코어 개수 CPU (New) {{nhncloud_instance_id}} 숫자
코어별 CPU 사용률 (%) CPU (New) {{nhncloud_instance_id}} cpu={{cpu}} 백분율(0-100)
CPU 평균 부하(1m) CPU (New) {{nhncloud_instance_id}} - 1m 숫자
CPU 평균 부하(5m) CPU (New) {{nhncloud_instance_id}} - 5m 숫자
CPU 평균 부하(15m) CPU (New) {{nhncloud_instance_id}} - 15m 숫자
CPU 상세(user) (%) CPU (New) {{nhncloud_instance_id}} 백분율(0-100)
CPU 상세(nice) (%) CPU (New) {{nhncloud_instance_id}} 백분율(0-100)
CPU 상세(system) (%) CPU (New) {{nhncloud_instance_id}} 백분율(0-100)
CPU 상세(iowait) (%) CPU (New) {{nhncloud_instance_id}} 백분율(0-100)
CPU 상세(steal) (%) CPU (New) {{nhncloud_instance_id}} 백분율(0-100)
메모리 사용률 (%) Memory (New) {{nhncloud_instance_id}} 백분율(0-100)
메모리 상세(used) (Bytes) Memory (New) {{nhncloud_instance_id}} 바이트(bytes)
메모리 상세(available) (Bytes) Memory (New) {{nhncloud_instance_id}} 바이트(bytes)
메모리 상세(free) (Bytes) Memory (New) {{nhncloud_instance_id}} 바이트(bytes)
메모리 상세(cached) (Bytes) Memory (New) {{nhncloud_instance_id}} 바이트(bytes)
메모리 상세(buffered) (Bytes) Memory (New) {{nhncloud_instance_id}} 바이트(bytes)
디스크 사용률 (%) Disk (New) {{nhncloud_instance_id}} 백분율(0-100)
장치별 디스크 사용률 (%) Disk (New) {{nhncloud_instance_id}} device={{device}} fstype={{fstype}} path={{path}} 백분율(0-100)
디스크 읽기 (B/s) Disk I/O (New) {{nhncloud_instance_id}} 초당 바이트(bytes/s)
디스크 쓰기 (B/s) Disk I/O (New) {{nhncloud_instance_id}} 초당 바이트(bytes/s)
장치별 디스크 읽기 (B/s) Disk I/O (New) {{nhncloud_instance_id}} device={{name}} 초당 바이트(bytes/s)
장치별 디스크 쓰기 (B/s) Disk I/O (New) {{nhncloud_instance_id}} device={{name}} 초당 바이트(bytes/s)
장치별 처리 중인 작업 수 Disk I/O (New) {{nhncloud_instance_id}} device={{name}} 숫자
장치별 IO 사용률 (%) Disk I/O (New) {{nhncloud_instance_id}} device={{name}} 백분율(0-100)
네트워크 데이터 수신 (B/s) Network (New) {{nhncloud_instance_id}} 초당 바이트(bytes/s)
네트워크 데이터 송신 (B/s) Network (New) {{nhncloud_instance_id}} 초당 바이트(bytes/s)
장치별 네트워크 데이터 수신 (B/s) Network (New) {{nhncloud_instance_id}} interface={{interface}} 초당 바이트(bytes/s)
장치별 네트워크 데이터 송신 (B/s) Network (New) {{nhncloud_instance_id}} interface={{interface}} 초당 바이트(bytes/s)
네트워크 데이터 수신 (bps) Network (New) {{nhncloud_instance_id}} 초당 비트(bit/s)
네트워크 데이터 송신 (bps) Network (New) {{nhncloud_instance_id}} 초당 비트(bit/s)
장치별 네트워크 데이터 수신 (bps) Network (New) {{nhncloud_instance_id}} interface={{interface}} 초당 비트(bit/s)
장치별 네트워크 데이터 송신 (bps) Network (New) {{nhncloud_instance_id}} interface={{interface}} 초당 비트(bit/s)
네트워크 패킷 수신 (pps) Network (New) {{nhncloud_instance_id}} 초당 패킷(packets/s)
네트워크 패킷 송신 (pps) Network (New) {{nhncloud_instance_id}} 초당 패킷(packets/s)
장치별 네트워크 패킷 수신 (pps) Network (New) {{nhncloud_instance_id}} interface={{interface}} 초당 패킷(packets/s)
장치별 네트워크 패킷 송신 (pps) Network (New) {{nhncloud_instance_id}} interface={{interface}} 초당 패킷(packets/s)
가동시간 (s) System (New) {{nhncloud_instance_id}} 시간(second)
스왑 사용률 (%) Swap (New) {{nhncloud_instance_id}} 백분율(0-100)
스왑 사용량(used) (Bytes) Swap (New) {{nhncloud_instance_id}} 바이트(bytes)
스왑 사용량(free) (Bytes) Swap (New) {{nhncloud_instance_id}} 바이트(bytes)
스왑 사용량(total) (Bytes) Swap (New) {{nhncloud_instance_id}} 바이트(bytes)
TOP