Monitoring/Scouter

==== Scouter 설치 하기 ====

Dragonfog.net 2021. 8. 19. 11:39
반응형

==== Scouter 설치 하기 ====

오픈소스 무료 APM 모니터링툴인 scouter 설치 기록입니다.
Scouter은 수집서버/Agent(java,host agent)/client로 구성 되어 있습니다.

수집서버 : Agent를 통해서 데이터를 수집하며 Raw data와 통계 데이터를 저장
Agent:
. java agent : WAS의 데이터를  수집서버
. host agent : host 데이터를 수집 (cpu사용율/network/filesystem등)
Client : eclipse 기반의 뷰어로 서버와 통신하며 수집서버 데이터를 dashboard화 함


scouter 설치하기
스카우터는 아래 사이트에서 다운로드 받으실수 있습니다.
참고 : https://github.com/scouter-project/scouter


먼저 scouter를 설치할 적당한 위치에 디렉토리를 생성하고 scouter를 다운로드 합니다. 
(scouter 구동을 위해서는 사전에 jdk 1.8+ 이상이 설치 되어 있어야 합니다.)

# mkdir /Admin/
# cd /app
# curl -O -L https://github.com/scouter-project/scouter/releases/download/v2.10.2/scouter-all-2.10.2.tar.gz
# tar xvfz scouter-all-2.10.2.tar.gz
# cd scouter/server/conf
# vi scouter.conf


# Agent Control and Service Port(Default : TCP 6100)
net_tcp_listen_port=8080

# UDP Receive Port(Default : 6100)
net_udp_listen_port=8080

# DB directory(Default : ./database)
db_dir=./database

# Log directory(Default : ./logs)
log_dir=./logs

#디스크의 특정 용량을 초과하면 과거 데이터부터 삭제합니다.
mgr_purge_disk_usage_pct=95

#프로파일 데이터를 유지하는 기간(일반적으로 가장 큰 사이즈의 데이터입니다.)
mgr_purge_profile_keep_days=7

#XLog를 유지하는 기간
mgr_purge_xlog_keep_days=14

#성능 카운터 정보를 유지하는 기간
mgr_purge_counter_keep_days=14


config 설정을 입력하고 저장합니다.

# cd /app/scouter/server


# ./startup.sh 
nohup: redirecting stderr to stdout
  ____                  _            
 / ___|  ___ ___  _   _| |_ ___ _ __ 
 \___ \ / __/   \| | | | __/ _ \ '__|
  ___) | (_| (+) | |_| | ||  __/ |   
 |____/ \___\___/ \__,_|\__\___|_|                                      
 Open Source S/W Performance Monitoring  
 Scouter version 2.10.2

반응형