Monitoring/Prometheus 4

Alertmanager 다운로드 & 설치

1. Alertmanager 다운로드 & 설치공식 사이트:https://prometheus.io/download/#alertmanager리눅스 (예시)cd /optwget https://github.com/prometheus/alertmanager/releases/download/v0.26.0/alertmanager-0.26.0.linux-amd64.tar.gztar -xvf alertmanager-0.26.0.linux-amd64.tar.gzmv alertmanager-0.26.0.linux-amd64 alertmanagercd alertmanager 디렉토리 구조 예시:C:\Alertmanager\ ├── alertmanager.exe ├── amtool.exe ├── alertmanager.y..

Alertmanager 메일 알림 기능 추가

1. Alertmanager로 메일 알림 설정1.1 Prometheus alert rule 작성Prometheus 가 설치된 서버에 추가하면 된다.파일 설치 위치iis_service_alert.yamlPrometheus 서버 내, rules 디렉토리 (예: /etc/prometheus/rules/ 또는 C:\Prometheus\rules\)(※ rules 디렉토리 없다면 그냥 만들어도 됨.) 새 Alert rule 파일 (iis_service_alert.yaml) 예시:groups:- name: IIS Service Alerts rules: - alert: IISServiceDown expr: wmi_service_status{service="W3SVC"} == 0 for: 2m la..

Windows 서버에 windows_exporter & wmi_exporter 설치 방법

Windows 서버에 windows_exporter 설치 방법MSI 설치 -> 서비스 확인 -> 포트 오픈 -> Prometheus 등록 1. windows_exporter 다운로드공식 GitHub 페이지 접속:https://github.com/prometheus-community/windows_exporter/releases최신 버전(zip 파일 또는 msi 설치 파일)을 다운로드한다.보통 .msi 파일이 편하다 (windows_exporter-*.msi)2. windows_exporter 설치MSI 파일 설치 방법다운로드한 .msi 파일 더블 클릭설치 마법사 실행설치 옵션 확인:설치 경로(Default: C:\Program Files\windows_exporter\)기본 포트(9182) 사용설치 완료..

windows_exporter ( 구: wmi_exporter ) 정의

windows_exporter 란? windows_exporter는 Windows 서버의 CPU, 메모리, 디스크, 네트워크 상태 같은 서버 리소스 메트릭(Metrics) 을 수집해서 Prometheus가 가져갈 수 있게 해주는 모니터링 에이전트다. 원래 이름은 wmi_exporter였는데, 2020년에 이름이 windows_exporter로 공식 변경되었다. 쉽게 말하면: "Prometheus가 Windows 서버 상태를 모니터링할 수 있게 해주는 프로그램" 이다. 왜 필요한가?Prometheus는 기본적으로 Linux 서버에 최적화된 시스템이라,Windows 서버 리소스(CPU 사용률, 메모리 사용량, 디스크 상태 등) 을 직접 수집할 수 없다.→ 그래서 Windows 서버에 windows_expor..