티스토리 뷰

Install

Releases · scouter-project/scouter

 

Releases · scouter-project/scouter

Scouter is an open source APM (Application Performance Management) tool. - scouter-project/scouter

github.com

  1. scouter-all-2.10.0 다운로드 (2020.12.08 기준 최신버전 2.10.0)
  2. #linux & mac
    wget https://github.com/scouter-project/scouter/releases/download/v2.10.0/scouter-all-2.10.0.tar.gz
    
    unzip scouter-all-2.10.0.tar.gz
    
    
    #windows
    https://github.com/scouter-project/scouter/releases/tag/v2.10.0 접속
    scouter-all-2.10.0.tar.gz 다운로드
    압축해제
    

🖥️ Clinet

  1. scoter client 설치 후 client 실행

  2. clinet 접속
    • Server Address : {로컬}ip:6100
    • ID : admin
    • Password : admin

화면

  • Objects
    • 수집 서버들의 목록
      • 펭귄 : 리눅스
      • 윈도우창 : 윈도우
      • 사과 : 맥
    • 수집 서버 하위에 JVM 인스턴스 목록
    • 서버 더블 클릭 시 해당 서버의 데이터만 표시

메뉴 - Management

  • ObjectMap : 수집 서버와 인스턴스의 관계 표시
  • Alert : 모니터링 중인 서버에 발생한 알림 목록
  •  Collector
    • 인스턴스를 모니터링 할 수 있는 그래프, 설정 등 가능
  • Host
    • Object창에서 서버를 선택 후 메뉴 선택
    • Host Agent에서 수집되는 정보를 그래프로 선택 가능
    • Object Request
      • Env : 서버에 설정된 환경 변수
      • TOP : 프로세스 자원 사용 현황
      • Disk Usage : 디스크 사용량
    • Configure : 현재 선택된 Host Agent 설정 확인 및 변경 가능
    • Edit Object Type : Object 창에 보여지는 아이콘, 서버 종류 변경
    • Set Color : 해당 서버의 그래프 색상 변경
  • Object
    • 인스턴스 관련 기능 및 설정
    • Performance Counter : 인스턴스 관련 그래프
    • Stack Frequency Analyzer : 스레드 문제 진단
    • Object Request : 하위 메뉴들은 성능에 영향이 있으므로 주의해서 사용!!!
  • Window
    • Rest Perspective : 초기 화면 구성으로 변경

Scouter 기본

 

Scouter 기본

Scouter란..

black9p.github.io

Tomcat/Java 필수 그래프 목록

  • GC Count
  • GC Time
  • Heap Used / Heap Memory
  • TPS
  • Active Service EQ
  • Active Speed
  • XLog

서버필수 그래프 목록

  • CPU
  • Memory
  • Network TX Bytes/RX Bytes
  • Swap
  • Tomcat/Java 필수 그래프 목록

 

 

 

 

📡 Scouter Server

  1. server 디렉토리 구조
    • conf : 설정 파일
    • database : 수집한 데이터를 저장 (파일로 저장)
    • logs : 서버 로그
  2. scouter server 실행
    • conf 는 default 로 사용
    • path : scouter/server/
    #windows
    ./startup.bat
    
    #lindx & mac
    ./startup.sh​
  3. 종료
    #windows
    ./stop.bat
    
    #linux & mac
    ./stop.sh​

📀 Host Agent

  • OS 성능 수집
  1. Host Agent 실행을 위해 설정 수정
    • scouter/agent.host/conf/scouter.conf
    • OS metric 정보 전송할 Server ip, port 설정 (default 로 사용)
    ### scouter host configruation sample
    net_collector_ip=127.0.0.1 #server ip
    net_collector_udp_port=6100 #server tcp port
    net_collector_tcp_port=6100 #server udp port
    #cpu_warning_pct=80
    #cpu_fatal_pct=85
    #cpu_check_period_ms=60000
    #cpu_fatal_history=3
    #cpu_alert_interval_ms=300000
    #disk_warning_pct=88
    #disk_fatal_pct=92​
  2. Host Agent 실행
    • paht : scouter/agent.host
    #windows
    ./host.bat
    
    #linux & mac
    ./host.sh​

🚀Java Agent

Tomcat, Jetty, Undertow 등 자바 기반의 WAS 모니터링 Java 기반의 프로그램도 가능

  • conf 수정
### scouter java agent configuration sample
#obj_name=WAS-01
net_collector_ip=127.0.0.1 #server ip
net_collector_udp_port=6100 #server tcp port
net_collector_tcp_port=6100 #server udp port
#hook_method_patterns=sample.mybiz.*Biz.*,sample.service.*Service.*
#trace_http_client_ip_header_key=X-Forwarded-For
#profile_spring_controller_method_parameter_enabled=false
#hook_exception_class_patterns=my.exception.TypedException
#profile_fullstack_hooked_exception_enabled=true
#hook_exception_handler_method_patterns=my.AbstractAPIController.fallbackHandler,my.ApiExceptionLoggingFilter.handleNotFoundErrorResponse
#hook_exception_hanlder_exclude_class_patterns=exception.BizException

IntelliJ IDEA - Application VM options

- spring boot application 모니터링 시 아래 설정처럼 VM options에 추가해서 로컬에서 모니터링 가능

-javaagent:D:/example/scouter/agent.java/scouter.agent.jar -Dscouter.config=D:/example/scouter/agent.java/conf/scouter.conf -Dobj_name=batman-admin
-javaagent:D:/example/scouter-2.10.0/agent.java/scouter.agent.jar -Dscouter.config=D:/example/scouter/agent.java/conf/scouter.conf -Dobj_name=test-test
-javaagent:D:/example/scouter-test/scouter/agent.java/scouter.agent.jar -Dscouter.config=D:/example/scouter-test/scouter/agent.java/conf/scouter.conf -Dobj_name=cloud-config-service

🔌scouter 서버/에이전트 플러그인

alert 플러그인

  • slack

https://team-platform.tistory.com/25

 

JAVA APM Scouter 활용 - 3부 스카우터 얼럿 플러그인 커스터마이징

1부 APM 선정과 스카우터의 지표소개 2부 스카우터 기능 활용 및 페이퍼 플러그인 3부 스카우터 얼럿 플러그인 커스터마이징 스카우터에서는 성능 모니터링 중 생긴 특정 상황에 대해 얼럿 기능

team-platform.tistory.com

Perspective

Scouter APM 소소한 시리즈 #3 - 기본 항목 모니터링(2/2)

 

Scouter APM 소소한 시리즈 #3 - 기본 항목 모니터링(2/2)

프로그램 개발 및 Scouter APM에 대한 블로그입니다.

gunsdevlog.blogspot.com

내보내기(Export) 및 가져오기(Import)

  • Perspective 내보내기 및 가져오기 기능으로 공유 및 백업 가능!
  • File > Export perspective settings
  • File > Import perspective settings

'Programming > Monitoring' 카테고리의 다른 글

[Monitoring] Scouter 1 - Scouter 구성 및 설명  (0) 2021.05.15
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함