weixiang1862 / skywalking-x-arthas

Start an arthas diagnostic process by skywalking-agent.
Apache License 2.0
40 stars 8 forks source link

arthas页面中$ServiceInstance的值是怎么生成的? #12

Closed jiaguoyi closed 4 months ago

jiaguoyi commented 4 months ago
sky

java -javaagent:D:\tools\skywalking\skywalking-agent\skywalking-agent.jar -Dskywalking.agent.service_name=arthas -Dskywalking.collector.backend-service=127.0.0.1:12800 -jar arthas-test-1.0-SNAPSHOT.jar,arthas-test-1.0-SNAPSHOT.jar 这个springboot项目中添加arthas-test-1.0-SNAPSHOT.jar的依赖吗,配置文件中需要配置arthas.agent-id吗?

jiaguoyi commented 4 months ago
配置

我在代码中是这么配置agent-id的,

sky

使用$ServiceInstance的值调用报错了,报下图中的错误,作者您能给解答一下吗?

捕获
jiaguoyi commented 4 months ago
tunnel
weixiang1862 commented 4 months ago

-agent-id用到的skywalking的instanceId去注册的,可以通过skywalking配置文件定义instance名称

image

jiaguoyi commented 4 months ago

魏老师,agent arthas-control-plugin, oap arthas-controller-module,skywalking-webapp这三个jar包的源码能提供我们看一下吗,我们想在这个基础上再做一些扩展,然后扩展完了之后也给您共享一下

weixiang1862 commented 4 months ago

魏老师,agent arthas-control-plugin, oap arthas-controller-module,skywalking-webapp这三个jar包的源码能提供我们看一下吗,我们想在这个基础上再做一些扩展,然后扩展完了之后也给您共享一下

所有代码都在这里,https://github.com/weixiang1862/skywalking-x-arthas

jiaguoyi commented 4 months ago

谢谢魏老师