SlideShare a Scribd company logo
엄승하
ELK APM(with 6.6 살펴보기)
순서
1. 목표
2. 사전에 참고할 내용
3. APM 구성 Components
4. 설치방법
5. 데모
목표
1. ELK를 이용한 APM 살펴보기
a. ELK APM을 설치 후 데모를 실행
b. 몇 가지 언어로 프로그램을 만든 후 부하를 발생시키고 결과를 확인하는 과정에서 학습
2. ELK Stack 6.6 버전 살펴보기
a. 2.x를 라이브 서비스에 사용하고 있으며, 개인적으로는는 5.0을 마지막으로 사용해봄
b. 이후 버전에 많은 기능 변화가 있었음(현재도 빠르게 기능이 추가되고 있음)
사전에 참고할 내용
1. 공식문서
a. APM 메인: https://www.elastic.co/solutions/apm
b. APM Overview : https://www.elastic.co/guide/en/apm/get-started/current/index.html
c. APM Server Reference : https://www.elastic.co/guide/en/apm/server/current/index.html
2. 지원언어(또는 프레임웤)
a. Java
b. Node.js
c. Django
d. Flask
e. Rails
f. Rack
g. RUM -JS
h. Go
APM 구성 Components
1. Elasticsearch : full-text search & 분석엔진. 데이터 저장소, 검색이 수행됨. APM Agents에서 전송된 데이터가 최종적으로
저장됨
2. Kibana : 시각화 컴포넌트, Elasticsearch에 질의를 요청하고 화면에 시각화 처리 함
3. APM agents : 서비스와 동일한 언어로 개발된 client side의 프로그램. 서비스의 성능 관련 데이터와 에러 데이터를
런타임에 APM서버로 전송
4. APM Server : Go로 작성된서버이며 APM agents로부터 데이터를 JSON HTTP API로 전송 받아서
documents(Elasticserarch의 데이터 row단위)를 만들어서 Elasticsearch에 저장함
설치방법
1. Elasticsearch
a. 6.6버전은 open jdk 11설치(링크)
b. elasticserarch 6.6설치(링크)
2. Kibana
a. https://www.elastic.co/guide/en/elastic-stack-get-started/6.6/get-started-elastic-stack.html#install-kib
ana
b. config/kibana.yml 파일에서 server.host: "0.0.0.0" 로 변경하면 모든 IP에서 웹 접근이 허용 됨
3. Server
a. https://www.elastic.co/guide/en/apm/server/current/setup-repositories.html
4. Agent(Client)
a. https://www.elastic.co/kr/solutions/apm
데모
1. 샘플 프로그램 실행
a. wget 'https://github.com/oshnew/ELK-Study/raw/master/apm/sample-program/hello-demo.jar' -O
hello-demo.jar
b. 실행
c. 트랙픽 발생
i. curl 'http://localhost:9878/test/hello'
ii. curl 'http://localhost:9878/test/hello2'
java 
-javaagent:elastic-apm-agent-1.3.0.jar
-Delastic.apm.service_name=hello-demo
-Delastic.apm.server_url=http://localhost:8200
-Delastic.apm.application_packages=org.example
-jar -Dserver.port=8700 hello-demo.jar
데모
참고링크
https://www.elastic.co/
감사합니다.

More Related Content

PPTX
Eclipse RAP
PPTX
올챙이(Tadpole for DB Tools)로 살펴보는 Eclipse RAP
PPTX
Eclipse 4 RCP - 2nd Week
PPTX
010.JAVA TROUBLESHOOTING
PDF
PaaS 환경에서 애플리케이션 성능과 장애 대응 방안
PDF
ModelSim 기초 매뉴얼
PPTX
오픈소스 WAS를 위한 APM 솔루션 - OPENMARU APM
PPTX
15.PaaS 환경에서 애플리케이션 모니터링이 다른점과 꼭 필요한 점은?
Eclipse RAP
올챙이(Tadpole for DB Tools)로 살펴보는 Eclipse RAP
Eclipse 4 RCP - 2nd Week
010.JAVA TROUBLESHOOTING
PaaS 환경에서 애플리케이션 성능과 장애 대응 방안
ModelSim 기초 매뉴얼
오픈소스 WAS를 위한 APM 솔루션 - OPENMARU APM
15.PaaS 환경에서 애플리케이션 모니터링이 다른점과 꼭 필요한 점은?

Similar to ELK APM(with 6.6 살펴보기) (20)

PPTX
Backend Master | 3.1.2 Build - Java build tool - Maven
PPTX
Eclipse RAP - Single Source
PDF
[H3 2012] Bridge over troubled water : make plug-in for Appspresso
PPTX
공감세미나 성능테스트
PPTX
Eclipse RCP 2/2
PDF
Service Worker 를 이용한 
Offline Web Application 구현
PPTX
N02 app engineseminar
PPTX
Springmvc
PPTX
PHP Slim Framework with Angular
PPTX
Web assembly 맛보기
PPTX
Caffe Tutorial with window10, VS2015
PDF
OPENMARU APM 브로셔
PDF
Red Hat Forum 2012 - JBoss RHQ - Java Application Monitoring & Management Pla...
PDF
Java9 특징 훑어보기
PPT
WIPI.ppt
PDF
Now and Future of APM
PDF
도구를 활용한 더 나은 웹 개발: Yeoman
PDF
[제14회 JCO 컨퍼런스] 개발자를 위한 서버이중화 by JAVACAFE
PPTX
Spring boot DI
PDF
2017. 프론트엔드 트랜드
Backend Master | 3.1.2 Build - Java build tool - Maven
Eclipse RAP - Single Source
[H3 2012] Bridge over troubled water : make plug-in for Appspresso
공감세미나 성능테스트
Eclipse RCP 2/2
Service Worker 를 이용한 
Offline Web Application 구현
N02 app engineseminar
Springmvc
PHP Slim Framework with Angular
Web assembly 맛보기
Caffe Tutorial with window10, VS2015
OPENMARU APM 브로셔
Red Hat Forum 2012 - JBoss RHQ - Java Application Monitoring & Management Pla...
Java9 특징 훑어보기
WIPI.ppt
Now and Future of APM
도구를 활용한 더 나은 웹 개발: Yeoman
[제14회 JCO 컨퍼런스] 개발자를 위한 서버이중화 by JAVACAFE
Spring boot DI
2017. 프론트엔드 트랜드
Ad

ELK APM(with 6.6 살펴보기)

  • 2. 순서 1. 목표 2. 사전에 참고할 내용 3. APM 구성 Components 4. 설치방법 5. 데모
  • 3. 목표 1. ELK를 이용한 APM 살펴보기 a. ELK APM을 설치 후 데모를 실행 b. 몇 가지 언어로 프로그램을 만든 후 부하를 발생시키고 결과를 확인하는 과정에서 학습 2. ELK Stack 6.6 버전 살펴보기 a. 2.x를 라이브 서비스에 사용하고 있으며, 개인적으로는는 5.0을 마지막으로 사용해봄 b. 이후 버전에 많은 기능 변화가 있었음(현재도 빠르게 기능이 추가되고 있음)
  • 4. 사전에 참고할 내용 1. 공식문서 a. APM 메인: https://www.elastic.co/solutions/apm b. APM Overview : https://www.elastic.co/guide/en/apm/get-started/current/index.html c. APM Server Reference : https://www.elastic.co/guide/en/apm/server/current/index.html 2. 지원언어(또는 프레임웤) a. Java b. Node.js c. Django d. Flask e. Rails f. Rack g. RUM -JS h. Go
  • 5. APM 구성 Components 1. Elasticsearch : full-text search & 분석엔진. 데이터 저장소, 검색이 수행됨. APM Agents에서 전송된 데이터가 최종적으로 저장됨 2. Kibana : 시각화 컴포넌트, Elasticsearch에 질의를 요청하고 화면에 시각화 처리 함 3. APM agents : 서비스와 동일한 언어로 개발된 client side의 프로그램. 서비스의 성능 관련 데이터와 에러 데이터를 런타임에 APM서버로 전송 4. APM Server : Go로 작성된서버이며 APM agents로부터 데이터를 JSON HTTP API로 전송 받아서 documents(Elasticserarch의 데이터 row단위)를 만들어서 Elasticsearch에 저장함
  • 6. 설치방법 1. Elasticsearch a. 6.6버전은 open jdk 11설치(링크) b. elasticserarch 6.6설치(링크) 2. Kibana a. https://www.elastic.co/guide/en/elastic-stack-get-started/6.6/get-started-elastic-stack.html#install-kib ana b. config/kibana.yml 파일에서 server.host: "0.0.0.0" 로 변경하면 모든 IP에서 웹 접근이 허용 됨 3. Server a. https://www.elastic.co/guide/en/apm/server/current/setup-repositories.html 4. Agent(Client) a. https://www.elastic.co/kr/solutions/apm
  • 7. 데모 1. 샘플 프로그램 실행 a. wget 'https://github.com/oshnew/ELK-Study/raw/master/apm/sample-program/hello-demo.jar' -O hello-demo.jar b. 실행 c. 트랙픽 발생 i. curl 'http://localhost:9878/test/hello' ii. curl 'http://localhost:9878/test/hello2' java -javaagent:elastic-apm-agent-1.3.0.jar -Delastic.apm.service_name=hello-demo -Delastic.apm.server_url=http://localhost:8200 -Delastic.apm.application_packages=org.example -jar -Dserver.port=8700 hello-demo.jar