Ref
组件说明
HBase |
for storage |
Pinpoint Collector |
Pinpoint core |
Pinpoint Web |
Web UI |
Pinpoint Agent |
attached to a java application for profiling |
hbase脚本
1
| https://github.com/naver/pinpoint/tree/master/hbase/scripts
|
War包部署方式
1 2 3 4 5 6
| 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部署方式
1 2 3 4
| https://github.com/naver/pinpoint-docker docker-compose pull docker-compose up -d docker-compose ps
|
Agent配置
1 2 3 4 5 6 7 8 9
| https://github.com/naver/pinpoint/blob/master/doc/installation.md
vim $Agent_Home/pinpoint.config pinpoint.profiler.profiles.active=release
vim profiles/release/pinpoint-env.config
profiler.sampling.rate=<your-want>
|
应用配置
1 2 3
| -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
1 2 3
| https://pinpoint-apm.github.io/pinpoint/faq.html
http://pinpoint.boer.xyz/admin/removeAgentId.pinpoint?applicationName=OrderService&agentId=cdc15ef982f5a09f&password=admin
|
修改HBase数据保存时间
1 2 3 4 5 6 7 8 9
| describe 'TraceV2' disable 'TraceV2' alter 'TraceV2', {NAME => 'S', TTL => '604800'} enable 'TraceV2' describe 'TraceV2'
hbase shell < https://github.com/naver/pinpoint/blob/master/hbase/scripts/hbase-major-compact-htable.hbase
|
Stay Hungry, Stay Foolish.