개발일기
[모니터링 툴] 로컬에서 scouter 사용하기 본문
https://github.com/scouter-project/scouter/releases/
Releases · scouter-project/scouter
Scouter is an open source APM (Application Performance Management) tool. - scouter-project/scouter
github.com
해당 깃허브에서 scouter-all-2.17.1 , scouter.client.product-macosx.cocoa.x86_64.tar.gz 다운받는다.
맥북이기에 윈도우면 win32받으면 됩니다.
맥북의 경우 실행이 안되는데
scouter-all 압축을 풀어준 후, server 폴더로 가서
./startup.sh
해당 명령어를 입력해준다.
그 후, scouter.client 압출을 풀어준다. 그러고 실행하면,
바로 귀염둥이를 확인 할 수 있다.
그러면 스카우터 client가 있는 위치로 가서
xattr -cr scouter.client.app
해당 명령어를 입력해주자..!
그 후, client를 실행 해준다.
그러면 id, password를 입력해야 하는데 admin/admin이다.
여기까지 완료하면 해당 화면이 나와준다.
현재 통계 관련 지표들이 비활성화가 되어있다. 이를 활성화 시키는 작업을 진행할 예정이다.
각자 맞는 스카우터 설정을 입력해준다. -Dobj-name은 자기가 원하는 이름으로 진행해도됨
Intellij EditConfiguration에서 Add VM Options
-javaagent:/Users/han/Desktop/util/scouter/agent.java/scouter.agent.jar -Dscouter.config/Users/han/Desktop/util/scouter/server/conf/scouter.conf -Dobj-name=itzip --add-opens java.base/java.lang=ALL-UNNAMED
이렇게 설정해주면
스카우터가 정상적으로 모니터링 하는 것을 확인 할 수 있다.
OS에 CPU, Memory 정보 확인하기 위해 "agent.host" 설정 및 진행을 하겠습니다.
/scouter/agent.host/conf 경로에 scouter.conf 설정 변경
net_collector_ip=127.0.0.1
net_collector_udp_port=6100
net_collector_tcp_port=6100
위에 세가지 주석 해제
해당 경로에 있는 ./host.sh 실행
모니터링 툴이 정상적으로 동작하는 것을 확인 할 수 있다.
'photocard backend server 개발일기' 카테고리의 다른 글
[Spring Boot] 캐시 + Spring Boot 인증메일 저장하기 (0) | 2025.01.06 |
---|---|
[Swagger] Swagger 2.3.0 버전 세팅 (1) | 2024.12.30 |
[부하테스트] ngrinder 관련 정리 (1) | 2024.12.30 |
[성능 테스트] ngrinder 부하테스트 사용방법 (0) | 2024.12.30 |
🖥️ [모니터링 툴] AWS EC2 docker-compose 그라파냐, 프로메테우스 설치 (1) | 2024.12.26 |