Ref

https://naver.github.io/pinpoint/installation.html

组件说明

HBase for storage
Pinpoint Collector Pinpoint core
Pinpoint Web Web UI
Pinpoint Agent attached to a java application for profiling

hbase脚本

https://github.com/naver/pinpoint/tree/master/hbase/scripts

War包部署方式

curl -LO https://archive.apache.org/dist/hbase/1.2.7/hbase-1.2.7-bin.tar.gz
下载pinpoint组件war/jar包
https://github.com/naver/pinpoint/releases

https://raw.githubusercontent.com/naver/pinpoint/master/hbase/scripts/hbase-create.hbase
bin/hbase shell ./hbase-create.hbase

Docker部署方式

https://github.com/naver/pinpoint-docker
docker-compose pull
docker-compose up -d
docker-compose ps

Agent配置

https://github.com/naver/pinpoint/blob/master/doc/installation.md#profiles-2

vim $Agent_Home/pinpoint.config
pinpoint.profiler.profiles.active=release
全部127.0.0.1替换为你自己的pinpoint server地址

vim profiles/release/pinpoint-env.config # release对应上面配置文件pinpoint.profiler.profiles.active=release
全部127.0.0.1替换为你自己的pinpoint server地址

应用配置

-javaagent:${pinpointPath}/pinpoint-bootstrap-2.0.2.jar
-Dpinpoint.applicationName=< 应用名, length<24 >
-Dpinpoint.agentId=< 全局唯一, length<24 >

填坑

  • 服务名 & AgentID长度不能超过24 https://github.com/naver/pinpoint/issues/3504
  • AgentID全局唯一

删除AgentID/APP

https://naver.github.io/pinpoint/faq.html#how-do-i-delete-application-name-andor-agent-id-from-hbase

修改HBase数据保存时间

describe 'TraceV2'
disable 'TraceV2'
alter 'TraceV2', {NAME => 'S', TTL => '604800'}
enable 'TraceV2'
describe 'TraceV2'

Stay Hungry, Stay Foolish.


本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处!

Openconnect VPN CentOS登陆 上一篇
致我的2012 下一篇