系统性能全链路监测与排查调优

基本链路图

1
后台服务--->open-telemetry(挂载探针)--->SigNoz(可视化观测)--->arthas(分析)

使用教程

下载安装
1
2
3
4
# Download the latest OpenTelemetry Java Agent

curl -L -o opentelemetry-javaagent.jar
https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/latest/download/opentelemetry-javaagent.jar

For a detailed list of agent configuration options, see the agent configuration docs.

安装SigNoz并指定配置

1
2
3
4
5
6
# 运行项目时挂载agent
java -javaagent:opentelemetry-javaagent.jar #挂载的agent
-Dotel.exporter.otlp.endpoint=http://localhost:4317 #指定otlp的端口4317是http,也可以采用rcp协议
-Dotel.resource.attributes=service.name=my-springboot-app #后台服务名称
-jar collection-0.0.1-SNAPSHOT.jar #后台服务
--server.port=8888

效果图



arthas命令大全

图片链接