Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
润土的好友猹
SkyWalking
提交
b11c3519
S
SkyWalking
项目概览
润土的好友猹
/
SkyWalking
与 Fork 源项目一致
Fork自
apache / SkyWalking
通知
9
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
SkyWalking
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
b11c3519
编写于
8月 27, 2020
作者:
wu-sheng
提交者:
GitHub
8月 27, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix bug. (#5400)
上级
fda4bbd2
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
15 addition
and
13 deletion
+15
-13
docs/en/setup/envoy/als_setting.md
docs/en/setup/envoy/als_setting.md
+5
-3
oap-server/analyzer/agent-analyzer/src/main/java/org/apache/skywalking/oap/server/analyzer/provider/jvm/JVMSourceDispatcher.java
...oap/server/analyzer/provider/jvm/JVMSourceDispatcher.java
+10
-10
未找到文件。
docs/en/setup/envoy/als_setting.md
浏览文件 @
b11c3519
...
...
@@ -18,12 +18,14 @@ You need three steps to open ALS.
```
Note:Skywalking oap service is at skywalking namespace, and the port of gRPC service is 11800
2.
Open SkyWalking
[
envoy receiver
](
../backend/backend-receivers.md
)
.
3.
Active ALS k8s-mesh analysis
2.
(Default is ACTIVATED) Activate SkyWalking
[
envoy receiver
](
../backend/backend-receivers.md
)
.
3.
Active ALS k8s-mesh analysis
, set system env variable
`SW_ENVOY_METRIC_ALS_HTTP_ANALYSIS`
=
`k8s-mesh`
```
yaml
envoy-metric
:
selector
:
${SW_ENVOY_METRIC:default}
default
:
alsHTTPAnalysis
:
"
k8s-mesh"
acceptMetricsService
:
${SW_ENVOY_METRIC_SERVICE:true}
alsHTTPAnalysis
:
${SW_ENVOY_METRIC_ALS_HTTP_ANALYSIS:""}
# Setting the system env variable would override this.
```
Note multiple value,please use
`,`
symbol split
...
...
oap-server/analyzer/agent-analyzer/src/main/java/org/apache/skywalking/oap/server/analyzer/provider/jvm/JVMSourceDispatcher.java
浏览文件 @
b11c3519
...
...
@@ -75,9 +75,9 @@ public class JVMSourceDispatcher {
CPU
cpu
)
{
ServiceInstanceJVMCPU
serviceInstanceJVMCPU
=
new
ServiceInstanceJVMCPU
();
serviceInstanceJVMCPU
.
setId
(
serviceInstanceId
);
serviceInstanceJVMCPU
.
setName
(
service
);
serviceInstanceJVMCPU
.
setName
(
service
Instance
);
serviceInstanceJVMCPU
.
setServiceId
(
serviceId
);
serviceInstanceJVMCPU
.
setServiceName
(
service
Instance
);
serviceInstanceJVMCPU
.
setServiceName
(
service
);
serviceInstanceJVMCPU
.
setUsePercent
(
cpu
.
getUsagePercent
());
serviceInstanceJVMCPU
.
setTimeBucket
(
timeBucket
);
sourceReceiver
.
receive
(
serviceInstanceJVMCPU
);
...
...
@@ -92,9 +92,9 @@ public class JVMSourceDispatcher {
gcs
.
forEach
(
gc
->
{
ServiceInstanceJVMGC
serviceInstanceJVMGC
=
new
ServiceInstanceJVMGC
();
serviceInstanceJVMGC
.
setId
(
serviceInstanceId
);
serviceInstanceJVMGC
.
setName
(
service
);
serviceInstanceJVMGC
.
setName
(
service
Instance
);
serviceInstanceJVMGC
.
setServiceId
(
serviceId
);
serviceInstanceJVMGC
.
setServiceName
(
service
Instance
);
serviceInstanceJVMGC
.
setServiceName
(
service
);
switch
(
gc
.
getPhrase
())
{
case
NEW:
...
...
@@ -121,9 +121,9 @@ public class JVMSourceDispatcher {
memories
.
forEach
(
memory
->
{
ServiceInstanceJVMMemory
serviceInstanceJVMMemory
=
new
ServiceInstanceJVMMemory
();
serviceInstanceJVMMemory
.
setId
(
serviceInstanceId
);
serviceInstanceJVMMemory
.
setName
(
service
);
serviceInstanceJVMMemory
.
setName
(
service
Instance
);
serviceInstanceJVMMemory
.
setServiceId
(
serviceId
);
serviceInstanceJVMMemory
.
setServiceName
(
service
Instance
);
serviceInstanceJVMMemory
.
setServiceName
(
service
);
serviceInstanceJVMMemory
.
setHeapStatus
(
memory
.
getIsHeap
());
serviceInstanceJVMMemory
.
setInit
(
memory
.
getInit
());
serviceInstanceJVMMemory
.
setMax
(
memory
.
getMax
());
...
...
@@ -144,9 +144,9 @@ public class JVMSourceDispatcher {
memoryPools
.
forEach
(
memoryPool
->
{
ServiceInstanceJVMMemoryPool
serviceInstanceJVMMemoryPool
=
new
ServiceInstanceJVMMemoryPool
();
serviceInstanceJVMMemoryPool
.
setId
(
serviceInstanceId
);
serviceInstanceJVMMemoryPool
.
setName
(
service
);
serviceInstanceJVMMemoryPool
.
setName
(
service
Instance
);
serviceInstanceJVMMemoryPool
.
setServiceId
(
serviceId
);
serviceInstanceJVMMemoryPool
.
setServiceName
(
service
Instance
);
serviceInstanceJVMMemoryPool
.
setServiceName
(
service
);
switch
(
memoryPool
.
getType
())
{
case
NEWGEN_USAGE:
...
...
@@ -186,9 +186,9 @@ public class JVMSourceDispatcher {
Thread
thread
)
{
ServiceInstanceJVMThread
serviceInstanceJVMThread
=
new
ServiceInstanceJVMThread
();
serviceInstanceJVMThread
.
setId
(
serviceInstanceId
);
serviceInstanceJVMThread
.
setName
(
service
);
serviceInstanceJVMThread
.
setName
(
service
Instance
);
serviceInstanceJVMThread
.
setServiceId
(
serviceId
);
serviceInstanceJVMThread
.
setServiceName
(
service
Instance
);
serviceInstanceJVMThread
.
setServiceName
(
service
);
serviceInstanceJVMThread
.
setLiveCount
(
thread
.
getLiveCount
());
serviceInstanceJVMThread
.
setDaemonCount
(
thread
.
getDaemonCount
());
serviceInstanceJVMThread
.
setPeakCount
(
thread
.
getPeakCount
());
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录