Metricbeat란?
시스템과 서비스에서 메트릭을 수집기며 CPU부터 메모리, Redis, NGINX까지 Metricbeat를 통해 다양한 시스템 서비스 통계를 가볍게 전송할 수 있습니다.
윈도우 10 – 64bit .zip 설치
https://www.elastic.co/kr/downloads/beats/metricbeat
설치 후 Zip 다운로드에 풀고 Metricbeats으로 이름 변경 후 C:\Program Files에 해당 파일 복사
metricbeat.yml 파일 -> 속성 -> 보안 -> Users -> 편집 -> 모든 권한 부여 체크
metricbeat.yml 파일 열고 해당 부분 수정
# ---------------------------- Elasticsearch Output ----------------------------
output.elasticsearch:
# Array of hosts to connect to.
hosts: ["192.168.0.xxx:9200"] # elasticsearch 서버 타깃 코드
# Protocol - either `http` (default) or `https`.
#protocol: "https"
# Authentication credentials - either API key or username/password.
#api_key: "id:api_key"
#username: "elastic"
#password: "changeme"
cmd 관리자 권한으로 실행 후 실행
cd 'C:\Program Files\metricbeat'
.\install-service-metricbeat.ps1
PowerShell.exe -ExecutionPolicy UnRestricted -File .\install-service-metricbeat.ps1
서비스 시작

Kibana 접속 후 Index 확인

확인 시 Index patterns 이동


인덱스 넣어 준 뒤 확인

@timestamp : 시간으로 저장

Observability 접속
