관리 메뉴

피터의 개발이야기

[APM] PinPoint 설치 - 3편 - Web, Collector 본문

DevOps/Pinpoint

[APM] PinPoint 설치 - 3편 - Web, Collector

기록하는 백앤드개발자 2020. 12. 15. 08:00
반응형

개요

Web, Collector

pinpoint의 web, collector은 war로 다운을 받아 tomcat으로 실행한다.

 

 

tomcat 9 버전 설치

wget https://archive.apache.org/dist/tomcat/tomcat-9/v9.0.39/bin/apache-tomcat-9.0.39.tar.gz -P /home/pinpoint/

#압축해제
tar zxvf apache-tomcat-9.0.39.tar.gz

#링크설정
ln -s /home/pinpoint/apache-tomcat-9.0.39 /home/pinpoint/tomcat

 

tomcat java_home 설정

tomcat/bin/setenv.sh 작성 

#!/bin/sh
JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.272.b10-1.el7_9.x86

# setenv.sh 권한설정
chmod +x ./setenv.sh

 

tomcat listen port 변경

8005 -> 7005 : 톰켓 종료용

8009 -> 7009 : AJP

8080 -> 7080 : HTTP 포트

 

# 7080 : PinPoint Web에 사용하는 포트 열기
# firewall-cmd --permanent --zone=public --add-port=7080/tcp

 

pinpoint-web 설치

#pinpoint-web war 파일 다운로드
wget https://github.com/naver/pinpoint/releases/download/1.8.4/pinpoint-web-1.8.4.war -P /home/pinpoint/files

# 폴더생성
mkdir /home/pinpoint/tomcat/webapps/ROOT
cd /home/pinpoint/tomcat/webapps/ROOT

# 압축해제 
jar xvf ~/files/pinpoint-web-1.8.4.war

# properties 설정 
vi /home/pinpoint/tomcat/webapps/ROOT/WEB-INF/classes/hbase.properties
hbase.client.host=localhost
hbase.client.port=2181

 

pinpoint-collector 설치

# pinpoint-collector 설치
wget https://github.com/naver/pinpoint/releases/download/1.8.4/pinpoint-collector-1.8.4.war -P /home/pinpoint/files
mkdir /home/pinpoint/tomcat/webapps/pinpoint-collector-1.8.4
cd pinpoint-collector-1.8.4

# 압축해제
jar xvf /home/pinpoint/files/pinpoint-collector-1.8.4.war

# properties 설정 
# udp의 경우 버전업을 해야 데이터를 정상적으로 뿌려주기에 tcp 사용
vim /home/pinpoint/tomcat/webapps/pinpoint-collector-1.8.4/WEB-INF/classes/pinpoint-collector.properties
collector.receiver.stat.tcp=true
collector.receiver.stat.udp=false

 

구동페이지

반응형
Comments