Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
山不在高_有仙则灵
SkyWalking
提交
3f82baa9
S
SkyWalking
项目概览
山不在高_有仙则灵
/
SkyWalking
与 Fork 源项目一致
Fork自
apache / SkyWalking
通知
12
Star
0
Fork
2
代码
文件
提交
分支
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,发现更多精彩内容 >>
提交
3f82baa9
编写于
1月 09, 2018
作者:
P
peng-yongsheng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Memory pool metric pyramid aggregate test successful.
上级
8f753f11
变更
27
显示空白变更内容
内联
并排
Showing
27 changed file
with
569 addition
and
90 deletion
+569
-90
apm-collector/apm-collector-agent/agent-grpc/agent-grpc-provider/src/main/java/org/apache/skywalking/apm/collector/agent/grpc/provider/handler/JVMMetricsServiceHandler.java
...agent/grpc/provider/handler/JVMMetricsServiceHandler.java
+4
-4
apm-collector/apm-collector-agent/agent-grpc/agent-grpc-provider/src/test/java/org/apache/skywalking/apm/collector/agent/grpc/provider/handler/JVMMetricServiceHandlerTestCase.java
...rpc/provider/handler/JVMMetricServiceHandlerTestCase.java
+60
-0
apm-collector/apm-collector-analysis/analysis-jvm/jvm-define/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/define/service/IMemoryPoolMetricService.java
...analysis/jvm/define/service/IMemoryPoolMetricService.java
+1
-1
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/service/MemoryPoolMetricService.java
...nalysis/jvm/provider/service/MemoryPoolMetricService.java
+8
-3
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/memorypool/MemoryPoolDayMetricTransformNode.java
...r/worker/memorypool/MemoryPoolDayMetricTransformNode.java
+4
-3
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/memorypool/MemoryPoolHourMetricTransformNode.java
.../worker/memorypool/MemoryPoolHourMetricTransformNode.java
+4
-3
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/memorypool/MemoryPoolMetricCopy.java
.../jvm/provider/worker/memorypool/MemoryPoolMetricCopy.java
+45
-0
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/memorypool/MemoryPoolMinuteMetricTransformNode.java
...orker/memorypool/MemoryPoolMinuteMetricTransformNode.java
+4
-3
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/memorypool/MemoryPoolMonthMetricTransformNode.java
...worker/memorypool/MemoryPoolMonthMetricTransformNode.java
+4
-3
apm-collector/apm-collector-core/src/main/java/org/apache/skywalking/apm/collector/core/data/operator/AddOperation.java
...alking/apm/collector/core/data/operator/AddOperation.java
+0
-1
apm-collector/apm-collector-core/src/main/java/org/apache/skywalking/apm/collector/core/data/operator/CoverOperation.java
...king/apm/collector/core/data/operator/CoverOperation.java
+0
-1
apm-collector/apm-collector-core/src/main/java/org/apache/skywalking/apm/collector/core/data/operator/MaxOperation.java
...alking/apm/collector/core/data/operator/MaxOperation.java
+63
-0
apm-collector/apm-collector-core/src/main/java/org/apache/skywalking/apm/collector/core/data/operator/MinOperation.java
...alking/apm/collector/core/data/operator/MinOperation.java
+63
-0
apm-collector/apm-collector-core/src/main/java/org/apache/skywalking/apm/collector/core/data/operator/NonOperation.java
...alking/apm/collector/core/data/operator/NonOperation.java
+0
-1
apm-collector/apm-collector-core/src/main/java/org/apache/skywalking/apm/collector/core/util/TimeBucketUtils.java
...e/skywalking/apm/collector/core/util/TimeBucketUtils.java
+1
-1
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/StorageModule.java
...pache/skywalking/apm/collector/storage/StorageModule.java
+25
-16
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/table/jvm/MemoryPoolMetric.java
...ing/apm/collector/storage/table/jvm/MemoryPoolMetric.java
+21
-9
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/table/jvm/MemoryPoolMetricTable.java
...pm/collector/storage/table/jvm/MemoryPoolMetricTable.java
+1
-1
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/StorageModuleEsProvider.java
...ing/apm/collector/storage/es/StorageModuleEsProvider.java
+45
-32
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/mpoolmp/AbstractMemoryPoolMetricEsPersistenceDAO.java
...dao/mpoolmp/AbstractMemoryPoolMetricEsPersistenceDAO.java
+16
-1
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/mpool/AbstractMemoryPoolMetricEsTableDefine.java
...s/define/mpool/AbstractMemoryPoolMetricEsTableDefine.java
+8
-6
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/mpool/MemoryPoolDayMetricEsTableDefine.java
...age/es/define/mpool/MemoryPoolDayMetricEsTableDefine.java
+37
-0
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/mpool/MemoryPoolHourMetricEsTableDefine.java
...ge/es/define/mpool/MemoryPoolHourMetricEsTableDefine.java
+37
-0
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/mpool/MemoryPoolMinuteMetricEsTableDefine.java
.../es/define/mpool/MemoryPoolMinuteMetricEsTableDefine.java
+37
-0
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/mpool/MemoryPoolMonthMetricEsTableDefine.java
...e/es/define/mpool/MemoryPoolMonthMetricEsTableDefine.java
+37
-0
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/mpool/MemoryPoolSecondMetricEsTableDefine.java
.../es/define/mpool/MemoryPoolSecondMetricEsTableDefine.java
+37
-0
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/resources/META-INF/defines/storage.define
...ovider/src/main/resources/META-INF/defines/storage.define
+7
-1
未找到文件。
apm-collector/apm-collector-agent/agent-grpc/agent-grpc-provider/src/main/java/org/apache/skywalking/apm/collector/agent/grpc/provider/handler/JVMMetricsServiceHandler.java
浏览文件 @
3f82baa9
...
...
@@ -66,11 +66,11 @@ public class JVMMetricsServiceHandler extends JVMMetricsServiceGrpc.JVMMetricsSe
request
.
getMetricsList
().
forEach
(
metric
->
{
long
time
=
TimeBucketUtils
.
INSTANCE
.
getSecondTimeBucket
(
metric
.
getTime
());
sendToInstanceHeartBeatService
(
instanceId
,
metric
.
getTime
());
sendToCpuMetricService
(
instanceId
,
time
,
metric
.
getCpu
());
sendToMemoryMetricService
(
instanceId
,
time
,
metric
.
getMemoryList
());
//
sendToInstanceHeartBeatService(instanceId, metric.getTime());
//
sendToCpuMetricService(instanceId, time, metric.getCpu());
//
sendToMemoryMetricService(instanceId, time, metric.getMemoryList());
sendToMemoryPoolMetricService
(
instanceId
,
time
,
metric
.
getMemoryPoolList
());
sendToGCMetricService
(
instanceId
,
time
,
metric
.
getGcList
());
//
sendToGCMetricService(instanceId, time, metric.getGcList());
});
responseObserver
.
onNext
(
Downstream
.
newBuilder
().
build
());
...
...
apm-collector/apm-collector-agent/agent-grpc/agent-grpc-provider/src/test/java/org/apache/skywalking/apm/collector/agent/grpc/provider/handler/JVMMetricServiceHandlerTestCase.java
0 → 100644
浏览文件 @
3f82baa9
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.agent.grpc.provider.handler
;
import
io.grpc.ManagedChannel
;
import
io.grpc.ManagedChannelBuilder
;
import
org.apache.skywalking.apm.network.proto.JVMMetric
;
import
org.apache.skywalking.apm.network.proto.JVMMetrics
;
import
org.apache.skywalking.apm.network.proto.JVMMetricsServiceGrpc
;
import
org.apache.skywalking.apm.network.proto.MemoryPool
;
import
org.apache.skywalking.apm.network.proto.PoolType
;
/**
* @author peng-yongsheng
*/
public
class
JVMMetricServiceHandlerTestCase
{
public
static
void
main
(
String
[]
args
)
{
ManagedChannel
channel
=
ManagedChannelBuilder
.
forAddress
(
"localhost"
,
11800
).
usePlaintext
(
true
).
build
();
JVMMetricsServiceGrpc
.
JVMMetricsServiceBlockingStub
blockingStub
=
JVMMetricsServiceGrpc
.
newBlockingStub
(
channel
);
JVMMetrics
.
Builder
builder
=
JVMMetrics
.
newBuilder
();
builder
.
setApplicationInstanceId
(
2
);
JVMMetric
.
Builder
metricBuilder
=
JVMMetric
.
newBuilder
();
metricBuilder
.
setTime
(
System
.
currentTimeMillis
());
buildMemoryPoolMetric
(
metricBuilder
);
builder
.
addMetrics
(
metricBuilder
.
build
());
blockingStub
.
collect
(
builder
.
build
());
}
private
static
void
buildMemoryPoolMetric
(
JVMMetric
.
Builder
metricBuilder
)
{
MemoryPool
.
Builder
builder
=
MemoryPool
.
newBuilder
();
builder
.
setInit
(
20
);
builder
.
setMax
(
50
);
builder
.
setCommited
(
20
);
builder
.
setUsed
(
15
);
builder
.
setType
(
PoolType
.
NEWGEN_USAGE
);
metricBuilder
.
addMemoryPool
(
builder
);
}
}
apm-collector/apm-collector-analysis/analysis-jvm/jvm-define/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/define/service/IMemoryPoolMetricService.java
浏览文件 @
3f82baa9
...
...
@@ -24,5 +24,5 @@ import org.apache.skywalking.apm.collector.core.module.Service;
* @author peng-yongsheng
*/
public
interface
IMemoryPoolMetricService
extends
Service
{
void
send
(
int
instanceId
,
long
timeBucket
,
int
poolType
,
long
init
,
long
max
,
long
used
,
long
commited
);
void
send
(
int
instanceId
,
long
timeBucket
,
int
poolType
,
long
init
,
long
max
,
long
used
,
long
commit
t
ed
);
}
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/service/MemoryPoolMetricService.java
浏览文件 @
3f82baa9
...
...
@@ -45,15 +45,20 @@ public class MemoryPoolMetricService implements IMemoryPoolMetricService {
}
@Override
public
void
send
(
int
instanceId
,
long
timeBucket
,
int
poolType
,
long
init
,
long
max
,
long
used
,
long
commited
)
{
public
void
send
(
int
instanceId
,
long
timeBucket
,
int
poolType
,
long
init
,
long
max
,
long
used
,
long
committed
)
{
String
metricId
=
instanceId
+
Const
.
ID_SPLIT
+
String
.
valueOf
(
poolType
);
String
id
=
timeBucket
+
Const
.
ID_SPLIT
+
metricId
;
MemoryPoolMetric
memoryPoolMetric
=
new
MemoryPoolMetric
();
memoryPoolMetric
.
setId
(
timeBucket
+
Const
.
ID_SPLIT
+
instanceId
+
Const
.
ID_SPLIT
+
String
.
valueOf
(
poolType
));
memoryPoolMetric
.
setId
(
id
);
memoryPoolMetric
.
setMetricId
(
metricId
);
memoryPoolMetric
.
setInstanceId
(
instanceId
);
memoryPoolMetric
.
setPoolType
(
poolType
);
memoryPoolMetric
.
setInit
(
init
);
memoryPoolMetric
.
setMax
(
max
);
memoryPoolMetric
.
setUsed
(
used
);
memoryPoolMetric
.
setCommitted
(
commited
);
memoryPoolMetric
.
setCommitted
(
committed
);
memoryPoolMetric
.
setTimes
(
1L
);
memoryPoolMetric
.
setTimeBucket
(
timeBucket
);
logger
.
debug
(
"push to memory pool metric graph, id: {}"
,
memoryPoolMetric
.
getId
());
...
...
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/memorypool/MemoryPoolDayMetricTransformNode.java
浏览文件 @
3f82baa9
...
...
@@ -36,9 +36,10 @@ public class MemoryPoolDayMetricTransformNode implements NodeProcessor<MemoryPoo
@Override
public
void
process
(
MemoryPoolMetric
memoryPoolMetric
,
Next
<
MemoryPoolMetric
>
next
)
{
long
timeBucket
=
TimeBucketUtils
.
INSTANCE
.
secondToDay
(
memoryPoolMetric
.
getTimeBucket
());
memoryPoolMetric
.
setId
(
String
.
valueOf
(
timeBucket
)
+
Const
.
ID_SPLIT
+
memoryPoolMetric
.
getMetricId
());
memoryPoolMetric
.
setTimeBucket
(
timeBucket
);
next
.
execute
(
memoryPoolMetric
);
MemoryPoolMetric
newMemoryPoolMetric
=
MemoryPoolMetricCopy
.
copy
(
memoryPoolMetric
);
newMemoryPoolMetric
.
setId
(
String
.
valueOf
(
timeBucket
)
+
Const
.
ID_SPLIT
+
memoryPoolMetric
.
getMetricId
());
newMemoryPoolMetric
.
setTimeBucket
(
timeBucket
);
next
.
execute
(
newMemoryPoolMetric
);
}
}
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/memorypool/MemoryPoolHourMetricTransformNode.java
浏览文件 @
3f82baa9
...
...
@@ -36,9 +36,10 @@ public class MemoryPoolHourMetricTransformNode implements NodeProcessor<MemoryPo
@Override
public
void
process
(
MemoryPoolMetric
memoryPoolMetric
,
Next
<
MemoryPoolMetric
>
next
)
{
long
timeBucket
=
TimeBucketUtils
.
INSTANCE
.
secondToHour
(
memoryPoolMetric
.
getTimeBucket
());
memoryPoolMetric
.
setId
(
String
.
valueOf
(
timeBucket
)
+
Const
.
ID_SPLIT
+
memoryPoolMetric
.
getMetricId
());
memoryPoolMetric
.
setTimeBucket
(
timeBucket
);
next
.
execute
(
memoryPoolMetric
);
MemoryPoolMetric
newMemoryPoolMetric
=
MemoryPoolMetricCopy
.
copy
(
memoryPoolMetric
);
newMemoryPoolMetric
.
setId
(
String
.
valueOf
(
timeBucket
)
+
Const
.
ID_SPLIT
+
memoryPoolMetric
.
getMetricId
());
newMemoryPoolMetric
.
setTimeBucket
(
timeBucket
);
next
.
execute
(
newMemoryPoolMetric
);
}
}
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/memorypool/MemoryPoolMetricCopy.java
0 → 100644
浏览文件 @
3f82baa9
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.analysis.jvm.provider.worker.memorypool
;
import
org.apache.skywalking.apm.collector.storage.table.jvm.MemoryPoolMetric
;
/**
* @author peng-yongsheng
*/
public
class
MemoryPoolMetricCopy
{
public
static
MemoryPoolMetric
copy
(
MemoryPoolMetric
memoryPoolMetric
)
{
MemoryPoolMetric
newMemoryPoolMetric
=
new
MemoryPoolMetric
();
newMemoryPoolMetric
.
setId
(
memoryPoolMetric
.
getId
());
newMemoryPoolMetric
.
setMetricId
(
memoryPoolMetric
.
getMetricId
());
newMemoryPoolMetric
.
setInstanceId
(
memoryPoolMetric
.
getInstanceId
());
newMemoryPoolMetric
.
setInit
(
memoryPoolMetric
.
getInit
());
newMemoryPoolMetric
.
setMax
(
memoryPoolMetric
.
getMax
());
newMemoryPoolMetric
.
setUsed
(
memoryPoolMetric
.
getUsed
());
newMemoryPoolMetric
.
setCommitted
(
memoryPoolMetric
.
getCommitted
());
newMemoryPoolMetric
.
setPoolType
(
memoryPoolMetric
.
getPoolType
());
newMemoryPoolMetric
.
setTimes
(
memoryPoolMetric
.
getTimes
());
newMemoryPoolMetric
.
setTimeBucket
(
memoryPoolMetric
.
getTimeBucket
());
return
newMemoryPoolMetric
;
}
}
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/memorypool/MemoryPoolMinuteMetricTransformNode.java
浏览文件 @
3f82baa9
...
...
@@ -36,9 +36,10 @@ public class MemoryPoolMinuteMetricTransformNode implements NodeProcessor<Memory
@Override
public
void
process
(
MemoryPoolMetric
memoryPoolMetric
,
Next
<
MemoryPoolMetric
>
next
)
{
long
timeBucket
=
TimeBucketUtils
.
INSTANCE
.
secondToMinute
(
memoryPoolMetric
.
getTimeBucket
());
memoryPoolMetric
.
setId
(
String
.
valueOf
(
timeBucket
)
+
Const
.
ID_SPLIT
+
memoryPoolMetric
.
getMetricId
());
memoryPoolMetric
.
setTimeBucket
(
timeBucket
);
next
.
execute
(
memoryPoolMetric
);
MemoryPoolMetric
newMemoryPoolMetric
=
MemoryPoolMetricCopy
.
copy
(
memoryPoolMetric
);
newMemoryPoolMetric
.
setId
(
String
.
valueOf
(
timeBucket
)
+
Const
.
ID_SPLIT
+
memoryPoolMetric
.
getMetricId
());
newMemoryPoolMetric
.
setTimeBucket
(
timeBucket
);
next
.
execute
(
newMemoryPoolMetric
);
}
}
apm-collector/apm-collector-analysis/analysis-jvm/jvm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/jvm/provider/worker/memorypool/MemoryPoolMonthMetricTransformNode.java
浏览文件 @
3f82baa9
...
...
@@ -36,9 +36,10 @@ public class MemoryPoolMonthMetricTransformNode implements NodeProcessor<MemoryP
@Override
public
void
process
(
MemoryPoolMetric
memoryPoolMetric
,
Next
<
MemoryPoolMetric
>
next
)
{
long
timeBucket
=
TimeBucketUtils
.
INSTANCE
.
secondToMonth
(
memoryPoolMetric
.
getTimeBucket
());
memoryPoolMetric
.
setId
(
String
.
valueOf
(
timeBucket
)
+
Const
.
ID_SPLIT
+
memoryPoolMetric
.
getMetricId
());
memoryPoolMetric
.
setTimeBucket
(
timeBucket
);
next
.
execute
(
memoryPoolMetric
);
MemoryPoolMetric
newMemoryPoolMetric
=
MemoryPoolMetricCopy
.
copy
(
memoryPoolMetric
);
newMemoryPoolMetric
.
setId
(
String
.
valueOf
(
timeBucket
)
+
Const
.
ID_SPLIT
+
memoryPoolMetric
.
getMetricId
());
newMemoryPoolMetric
.
setTimeBucket
(
timeBucket
);
next
.
execute
(
newMemoryPoolMetric
);
}
}
apm-collector/apm-collector-core/src/main/java/org/apache/skywalking/apm/collector/core/data/operator/AddOperation.java
浏览文件 @
3f82baa9
...
...
@@ -16,7 +16,6 @@
*
*/
package
org.apache.skywalking.apm.collector.core.data.operator
;
import
org.apache.skywalking.apm.collector.core.data.Operation
;
...
...
apm-collector/apm-collector-core/src/main/java/org/apache/skywalking/apm/collector/core/data/operator/CoverOperation.java
浏览文件 @
3f82baa9
...
...
@@ -16,7 +16,6 @@
*
*/
package
org.apache.skywalking.apm.collector.core.data.operator
;
import
org.apache.skywalking.apm.collector.core.data.Operation
;
...
...
apm-collector/apm-collector-core/src/main/java/org/apache/skywalking/apm/collector/core/data/operator/MaxOperation.java
0 → 100644
浏览文件 @
3f82baa9
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.core.data.operator
;
import
org.apache.skywalking.apm.collector.core.data.Operation
;
/**
* @author peng-yongsheng
*/
public
class
MaxOperation
implements
Operation
{
@Override
public
String
operate
(
String
newValue
,
String
oldValue
)
{
throw
new
UnsupportedOperationException
(
"not support string maximum operation"
);
}
@Override
public
Long
operate
(
Long
newValue
,
Long
oldValue
)
{
if
(
newValue
>=
oldValue
)
{
return
newValue
;
}
else
{
return
oldValue
;
}
}
@Override
public
Double
operate
(
Double
newValue
,
Double
oldValue
)
{
if
(
newValue
>=
oldValue
)
{
return
newValue
;
}
else
{
return
oldValue
;
}
}
@Override
public
Integer
operate
(
Integer
newValue
,
Integer
oldValue
)
{
if
(
newValue
>=
oldValue
)
{
return
newValue
;
}
else
{
return
oldValue
;
}
}
@Override
public
Boolean
operate
(
Boolean
newValue
,
Boolean
oldValue
)
{
throw
new
UnsupportedOperationException
(
"not support boolean maximum operation"
);
}
@Override
public
byte
[]
operate
(
byte
[]
newValue
,
byte
[]
oldValue
)
{
throw
new
UnsupportedOperationException
(
"not support byte maximum operation"
);
}
}
apm-collector/apm-collector-core/src/main/java/org/apache/skywalking/apm/collector/core/data/operator/MinOperation.java
0 → 100644
浏览文件 @
3f82baa9
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.core.data.operator
;
import
org.apache.skywalking.apm.collector.core.data.Operation
;
/**
* @author peng-yongsheng
*/
public
class
MinOperation
implements
Operation
{
@Override
public
String
operate
(
String
newValue
,
String
oldValue
)
{
throw
new
UnsupportedOperationException
(
"not support string minimum operation"
);
}
@Override
public
Long
operate
(
Long
newValue
,
Long
oldValue
)
{
if
(
newValue
<=
oldValue
)
{
return
newValue
;
}
else
{
return
oldValue
;
}
}
@Override
public
Double
operate
(
Double
newValue
,
Double
oldValue
)
{
if
(
newValue
<=
oldValue
)
{
return
newValue
;
}
else
{
return
oldValue
;
}
}
@Override
public
Integer
operate
(
Integer
newValue
,
Integer
oldValue
)
{
if
(
newValue
<=
oldValue
)
{
return
newValue
;
}
else
{
return
oldValue
;
}
}
@Override
public
Boolean
operate
(
Boolean
newValue
,
Boolean
oldValue
)
{
throw
new
UnsupportedOperationException
(
"not support boolean minimum operation"
);
}
@Override
public
byte
[]
operate
(
byte
[]
newValue
,
byte
[]
oldValue
)
{
throw
new
UnsupportedOperationException
(
"not support byte minimum operation"
);
}
}
apm-collector/apm-collector-core/src/main/java/org/apache/skywalking/apm/collector/core/data/operator/NonOperation.java
浏览文件 @
3f82baa9
...
...
@@ -16,7 +16,6 @@
*
*/
package
org.apache.skywalking.apm.collector.core.data.operator
;
import
org.apache.skywalking.apm.collector.core.data.Operation
;
...
...
apm-collector/apm-collector-core/src/main/java/org/apache/skywalking/apm/collector/core/util/TimeBucketUtils.java
浏览文件 @
3f82baa9
...
...
@@ -87,7 +87,7 @@ public enum TimeBucketUtils {
}
public
long
secondToMonth
(
long
secondBucket
)
{
return
secondBucket
/
100
/
100
/
100
;
return
secondBucket
/
100
/
100
/
100
/
100
;
}
public
long
changeTimeBucket2TimeStamp
(
String
timeBucketType
,
long
timeBucket
)
{
...
...
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/StorageModule.java
浏览文件 @
3f82baa9
...
...
@@ -22,43 +22,39 @@ import java.util.ArrayList;
import
java.util.List
;
import
org.apache.skywalking.apm.collector.core.module.Module
;
import
org.apache.skywalking.apm.collector.storage.base.dao.IBatchDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.alarm.IApplicationAlarmListPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.alarm.IApplicationAlarmPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.cache.IApplicationCacheDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IApplicationComponentUIDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IApplicationMappingUIDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.alarm.IApplicationReferenceAlarmListPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.alarm.IApplicationReferenceAlarmPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IApplicationReferenceMetricUIDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.ICpuMetricUIDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IGCMetricUIDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IGlobalTracePersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IGlobalTraceUIDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.alarm.IInstanceAlarmListPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.alarm.IInstanceAlarmPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.cache.IInstanceCacheDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IInstanceHeartBeatPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IInstanceMetricUIDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.alarm.IInstanceReferenceAlarmListPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.alarm.IInstanceReferenceAlarmPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IInstanceUIDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IMemoryMetricUIDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IMemoryPoolMetricUIDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.cache.INetworkAddressCacheDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.ISegmentCostPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.ISegmentCostUIDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.ISegmentPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.ISegmentUIDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.alarm.IServiceAlarmListPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.alarm.IServiceAlarmPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.cache.IServiceNameCacheDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.alarm.IServiceReferenceAlarmListPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.alarm.IServiceReferenceAlarmPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IServiceReferenceUIDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.acp.IApplicationComponentDayPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.acp.IApplicationComponentHourPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.acp.IApplicationComponentMinutePersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.acp.IApplicationComponentMonthPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.alarm.IApplicationAlarmListPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.alarm.IApplicationAlarmPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.alarm.IApplicationReferenceAlarmListPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.alarm.IApplicationReferenceAlarmPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.alarm.IInstanceAlarmListPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.alarm.IInstanceAlarmPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.alarm.IInstanceReferenceAlarmListPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.alarm.IInstanceReferenceAlarmPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.alarm.IServiceAlarmListPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.alarm.IServiceAlarmPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.alarm.IServiceReferenceAlarmListPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.alarm.IServiceReferenceAlarmPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.amp.IApplicationDayMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.amp.IApplicationHourMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.amp.IApplicationMinuteMetricPersistenceDAO
;
...
...
@@ -71,6 +67,10 @@ import org.apache.skywalking.apm.collector.storage.dao.armp.IApplicationReferenc
import
org.apache.skywalking.apm.collector.storage.dao.armp.IApplicationReferenceHourMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.armp.IApplicationReferenceMinuteMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.armp.IApplicationReferenceMonthMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.cache.IApplicationCacheDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.cache.IInstanceCacheDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.cache.INetworkAddressCacheDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.cache.IServiceNameCacheDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.cpump.ICpuSecondMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.gcmp.IGCSecondMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.imp.IInstanceDayMetricPersistenceDAO
;
...
...
@@ -86,6 +86,10 @@ import org.apache.skywalking.apm.collector.storage.dao.irmp.IInstanceReferenceHo
import
org.apache.skywalking.apm.collector.storage.dao.irmp.IInstanceReferenceMinuteMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.irmp.IInstanceReferenceMonthMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.memorymp.IMemorySecondMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.mpoolmp.IMemoryPoolDayMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.mpoolmp.IMemoryPoolHourMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.mpoolmp.IMemoryPoolMinuteMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.mpoolmp.IMemoryPoolMonthMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.mpoolmp.IMemoryPoolSecondMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.register.IApplicationRegisterDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.register.IInstanceRegisterDAO
;
...
...
@@ -142,7 +146,12 @@ public class StorageModule extends Module {
classes
.
add
(
ICpuSecondMetricPersistenceDAO
.
class
);
classes
.
add
(
IGCSecondMetricPersistenceDAO
.
class
);
classes
.
add
(
IMemorySecondMetricPersistenceDAO
.
class
);
classes
.
add
(
IMemoryPoolSecondMetricPersistenceDAO
.
class
);
classes
.
add
(
IMemoryPoolMinuteMetricPersistenceDAO
.
class
);
classes
.
add
(
IMemoryPoolHourMetricPersistenceDAO
.
class
);
classes
.
add
(
IMemoryPoolDayMetricPersistenceDAO
.
class
);
classes
.
add
(
IMemoryPoolMonthMetricPersistenceDAO
.
class
);
classes
.
add
(
IApplicationComponentMinutePersistenceDAO
.
class
);
classes
.
add
(
IApplicationComponentHourPersistenceDAO
.
class
);
...
...
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/table/jvm/MemoryPoolMetric.java
浏览文件 @
3f82baa9
...
...
@@ -20,7 +20,10 @@ package org.apache.skywalking.apm.collector.storage.table.jvm;
import
org.apache.skywalking.apm.collector.core.data.Column
;
import
org.apache.skywalking.apm.collector.core.data.StreamData
;
import
org.apache.skywalking.apm.collector.core.data.operator.AddOperation
;
import
org.apache.skywalking.apm.collector.core.data.operator.CoverOperation
;
import
org.apache.skywalking.apm.collector.core.data.operator.MaxOperation
;
import
org.apache.skywalking.apm.collector.core.data.operator.MinOperation
;
import
org.apache.skywalking.apm.collector.core.data.operator.NonOperation
;
/**
...
...
@@ -34,18 +37,19 @@ public class MemoryPoolMetric extends StreamData {
};
private
static
final
Column
[]
LONG_COLUMNS
=
{
new
Column
(
MemoryPoolMetricTable
.
COLUMN_INIT
,
new
CoverOperation
()),
new
Column
(
MemoryPoolMetricTable
.
COLUMN_MAX
,
new
CoverOperation
()),
new
Column
(
MemoryPoolMetricTable
.
COLUMN_USED
,
new
CoverOperation
()),
new
Column
(
MemoryPoolMetricTable
.
COLUMN_COMMITTED
,
new
CoverOperation
()),
new
Column
(
MemoryPoolMetricTable
.
COLUMN_TIME_BUCKET
,
new
CoverOperation
()),
new
Column
(
MemoryPoolMetricTable
.
COLUMN_INIT
,
new
MinOperation
()),
new
Column
(
MemoryPoolMetricTable
.
COLUMN_MAX
,
new
MaxOperation
()),
new
Column
(
MemoryPoolMetricTable
.
COLUMN_USED
,
new
AddOperation
()),
new
Column
(
MemoryPoolMetricTable
.
COLUMN_COMMITTED
,
new
AddOperation
()),
new
Column
(
MemoryPoolMetricTable
.
COLUMN_TIMES
,
new
AddOperation
()),
new
Column
(
MemoryPoolMetricTable
.
COLUMN_TIME_BUCKET
,
new
NonOperation
()),
};
private
static
final
Column
[]
DOUBLE_COLUMNS
=
{
};
private
static
final
Column
[]
INTEGER_COLUMNS
=
{
new
Column
(
MemoryPoolMetricTable
.
COLUMN_INSTANCE_ID
,
new
Cover
Operation
()),
new
Column
(
MemoryPoolMetricTable
.
COLUMN_INSTANCE_ID
,
new
Non
Operation
()),
new
Column
(
MemoryPoolMetricTable
.
COLUMN_POOL_TYPE
,
new
CoverOperation
()),
};
...
...
@@ -105,12 +109,20 @@ public class MemoryPoolMetric extends StreamData {
setDataLong
(
3
,
committed
);
}
public
Long
getTime
Bucket
()
{
public
Long
getTime
s
()
{
return
getDataLong
(
4
);
}
public
void
setTimes
(
Long
times
)
{
setDataLong
(
4
,
times
);
}
public
Long
getTimeBucket
()
{
return
getDataLong
(
5
);
}
public
void
setTimeBucket
(
Long
timeBucket
)
{
setDataLong
(
4
,
timeBucket
);
setDataLong
(
5
,
timeBucket
);
}
public
Integer
getInstanceId
()
{
...
...
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/table/jvm/MemoryPoolMetricTable.java
浏览文件 @
3f82baa9
...
...
@@ -16,7 +16,6 @@
*
*/
package
org.apache.skywalking.apm.collector.storage.table.jvm
;
import
org.apache.skywalking.apm.collector.core.data.CommonTable
;
...
...
@@ -32,4 +31,5 @@ public class MemoryPoolMetricTable extends CommonTable {
public
static
final
String
COLUMN_MAX
=
"max"
;
public
static
final
String
COLUMN_USED
=
"used"
;
public
static
final
String
COLUMN_COMMITTED
=
"committed"
;
public
static
final
String
COLUMN_TIMES
=
"times"
;
}
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/StorageModuleEsProvider.java
浏览文件 @
3f82baa9
...
...
@@ -31,43 +31,39 @@ import org.apache.skywalking.apm.collector.core.module.ServiceNotProvidedExcepti
import
org.apache.skywalking.apm.collector.storage.StorageException
;
import
org.apache.skywalking.apm.collector.storage.StorageModule
;
import
org.apache.skywalking.apm.collector.storage.base.dao.IBatchDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.alarm.IApplicationAlarmListPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.alarm.IApplicationAlarmPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.cache.IApplicationCacheDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IApplicationComponentUIDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IApplicationMappingUIDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.alarm.IApplicationReferenceAlarmListPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.alarm.IApplicationReferenceAlarmPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IApplicationReferenceMetricUIDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.ICpuMetricUIDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IGCMetricUIDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IGlobalTracePersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IGlobalTraceUIDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.alarm.IInstanceAlarmListPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.alarm.IInstanceAlarmPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.cache.IInstanceCacheDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IInstanceHeartBeatPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IInstanceMetricUIDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.alarm.IInstanceReferenceAlarmListPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.alarm.IInstanceReferenceAlarmPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IInstanceUIDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IMemoryMetricUIDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IMemoryPoolMetricUIDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.cache.INetworkAddressCacheDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.ISegmentCostPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.ISegmentCostUIDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.ISegmentPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.ISegmentUIDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.alarm.IServiceAlarmListPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.alarm.IServiceAlarmPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.cache.IServiceNameCacheDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.alarm.IServiceReferenceAlarmListPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.alarm.IServiceReferenceAlarmPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.IServiceReferenceUIDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.acp.IApplicationComponentDayPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.acp.IApplicationComponentHourPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.acp.IApplicationComponentMinutePersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.acp.IApplicationComponentMonthPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.alarm.IApplicationAlarmListPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.alarm.IApplicationAlarmPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.alarm.IApplicationReferenceAlarmListPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.alarm.IApplicationReferenceAlarmPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.alarm.IInstanceAlarmListPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.alarm.IInstanceAlarmPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.alarm.IInstanceReferenceAlarmListPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.alarm.IInstanceReferenceAlarmPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.alarm.IServiceAlarmListPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.alarm.IServiceAlarmPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.alarm.IServiceReferenceAlarmListPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.alarm.IServiceReferenceAlarmPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.amp.IApplicationDayMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.amp.IApplicationHourMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.amp.IApplicationMinuteMetricPersistenceDAO
;
...
...
@@ -80,6 +76,10 @@ import org.apache.skywalking.apm.collector.storage.dao.armp.IApplicationReferenc
import
org.apache.skywalking.apm.collector.storage.dao.armp.IApplicationReferenceHourMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.armp.IApplicationReferenceMinuteMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.armp.IApplicationReferenceMonthMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.cache.IApplicationCacheDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.cache.IInstanceCacheDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.cache.INetworkAddressCacheDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.cache.IServiceNameCacheDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.cpump.ICpuSecondMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.gcmp.IGCSecondMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.imp.IInstanceDayMetricPersistenceDAO
;
...
...
@@ -95,6 +95,10 @@ import org.apache.skywalking.apm.collector.storage.dao.irmp.IInstanceReferenceHo
import
org.apache.skywalking.apm.collector.storage.dao.irmp.IInstanceReferenceMinuteMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.irmp.IInstanceReferenceMonthMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.memorymp.IMemorySecondMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.mpoolmp.IMemoryPoolDayMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.mpoolmp.IMemoryPoolHourMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.mpoolmp.IMemoryPoolMinuteMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.mpoolmp.IMemoryPoolMonthMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.mpoolmp.IMemoryPoolSecondMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.register.IApplicationRegisterDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.register.IInstanceRegisterDAO
;
...
...
@@ -110,43 +114,39 @@ import org.apache.skywalking.apm.collector.storage.dao.srmp.IServiceReferenceMin
import
org.apache.skywalking.apm.collector.storage.dao.srmp.IServiceReferenceMonthMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.base.dao.BatchEsDAO
;
import
org.apache.skywalking.apm.collector.storage.es.base.define.ElasticSearchStorageInstaller
;
import
org.apache.skywalking.apm.collector.storage.es.dao.alarm.ApplicationAlarmEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.alarm.ApplicationAlarmListEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.ApplicationComponentEsUIDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.cache.ApplicationEsCacheDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.ApplicationMappingEsUIDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.alarm.ApplicationReferenceAlarmEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.alarm.ApplicationReferenceAlarmListEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.ApplicationReferenceMetricEsUIDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.CpuMetricEsUIDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.GCMetricEsUIDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.GlobalTraceEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.GlobalTraceEsUIDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.alarm.InstanceAlarmEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.alarm.InstanceAlarmListEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.cache.InstanceEsCacheDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.InstanceEsUIDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.InstanceHeartBeatEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.InstanceMetricEsUIDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.alarm.InstanceReferenceAlarmEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.alarm.InstanceReferenceAlarmListEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.MemoryMetricEsUIDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.MemoryPoolMetricEsUIDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.cache.NetworkAddressEsCacheDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.SegmentCostEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.SegmentCostEsUIDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.SegmentEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.SegmentEsUIDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.alarm.ServiceAlarmEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.alarm.ServiceAlarmListEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.cache.ServiceNameEsCacheDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.alarm.ServiceReferenceAlarmEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.alarm.ServiceReferenceAlarmListEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.ServiceReferenceEsUIDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.acp.ApplicationComponentDayEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.acp.ApplicationComponentHourEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.acp.ApplicationComponentMinuteEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.acp.ApplicationComponentMonthEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.alarm.ApplicationAlarmEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.alarm.ApplicationAlarmListEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.alarm.ApplicationReferenceAlarmEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.alarm.ApplicationReferenceAlarmListEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.alarm.InstanceAlarmEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.alarm.InstanceAlarmListEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.alarm.InstanceReferenceAlarmEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.alarm.InstanceReferenceAlarmListEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.alarm.ServiceAlarmEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.alarm.ServiceAlarmListEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.alarm.ServiceReferenceAlarmEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.alarm.ServiceReferenceAlarmListEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.amp.ApplicationDayMetricEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.amp.ApplicationHourMetricEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.amp.ApplicationMinuteMetricEsPersistenceDAO
;
...
...
@@ -159,6 +159,10 @@ import org.apache.skywalking.apm.collector.storage.es.dao.armp.ApplicationRefere
import
org.apache.skywalking.apm.collector.storage.es.dao.armp.ApplicationReferenceHourMetricEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.armp.ApplicationReferenceMinuteMetricEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.armp.ApplicationReferenceMonthMetricEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.cache.ApplicationEsCacheDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.cache.InstanceEsCacheDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.cache.NetworkAddressEsCacheDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.cache.ServiceNameEsCacheDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.cpump.CpuSecondMetricEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.gcmp.GCSecondMetricEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.imp.InstanceDayMetricEsPersistenceDAO
;
...
...
@@ -174,6 +178,10 @@ import org.apache.skywalking.apm.collector.storage.es.dao.irmp.InstanceReference
import
org.apache.skywalking.apm.collector.storage.es.dao.irmp.InstanceReferenceMinuteMetricEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.irmp.InstanceReferenceMonthMetricEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.memorymp.MemorySecondMetricEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.mpoolmp.MemoryPoolDayMetricEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.mpoolmp.MemoryPoolHourMetricEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.mpoolmp.MemoryPoolMinuteMetricEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.mpoolmp.MemoryPoolMonthMetricEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.mpoolmp.MemoryPoolSecondMetricEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.register.ApplicationEsRegisterDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.register.InstanceEsRegisterDAO
;
...
...
@@ -280,7 +288,12 @@ public class StorageModuleEsProvider extends ModuleProvider {
this
.
registerServiceImplementation
(
ICpuSecondMetricPersistenceDAO
.
class
,
new
CpuSecondMetricEsPersistenceDAO
(
elasticSearchClient
));
this
.
registerServiceImplementation
(
IGCSecondMetricPersistenceDAO
.
class
,
new
GCSecondMetricEsPersistenceDAO
(
elasticSearchClient
));
this
.
registerServiceImplementation
(
IMemorySecondMetricPersistenceDAO
.
class
,
new
MemorySecondMetricEsPersistenceDAO
(
elasticSearchClient
));
this
.
registerServiceImplementation
(
IMemoryPoolSecondMetricPersistenceDAO
.
class
,
new
MemoryPoolSecondMetricEsPersistenceDAO
(
elasticSearchClient
));
this
.
registerServiceImplementation
(
IMemoryPoolMinuteMetricPersistenceDAO
.
class
,
new
MemoryPoolMinuteMetricEsPersistenceDAO
(
elasticSearchClient
));
this
.
registerServiceImplementation
(
IMemoryPoolHourMetricPersistenceDAO
.
class
,
new
MemoryPoolHourMetricEsPersistenceDAO
(
elasticSearchClient
));
this
.
registerServiceImplementation
(
IMemoryPoolDayMetricPersistenceDAO
.
class
,
new
MemoryPoolDayMetricEsPersistenceDAO
(
elasticSearchClient
));
this
.
registerServiceImplementation
(
IMemoryPoolMonthMetricPersistenceDAO
.
class
,
new
MemoryPoolMonthMetricEsPersistenceDAO
(
elasticSearchClient
));
this
.
registerServiceImplementation
(
IApplicationComponentMinutePersistenceDAO
.
class
,
new
ApplicationComponentMinuteEsPersistenceDAO
(
elasticSearchClient
));
this
.
registerServiceImplementation
(
IApplicationComponentHourPersistenceDAO
.
class
,
new
ApplicationComponentHourEsPersistenceDAO
(
elasticSearchClient
));
...
...
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/dao/mpoolmp/AbstractMemoryPoolMetricEsPersistenceDAO.java
浏览文件 @
3f82baa9
...
...
@@ -39,7 +39,21 @@ public abstract class AbstractMemoryPoolMetricEsPersistenceDAO extends AbstractP
}
@Override
protected
final
MemoryPoolMetric
esDataToStreamData
(
Map
<
String
,
Object
>
source
)
{
return
null
;
MemoryPoolMetric
memoryPoolMetric
=
new
MemoryPoolMetric
();
memoryPoolMetric
.
setId
((
String
)
source
.
get
(
MemoryPoolMetricTable
.
COLUMN_ID
));
memoryPoolMetric
.
setMetricId
((
String
)
source
.
get
(
MemoryPoolMetricTable
.
COLUMN_METRIC_ID
));
memoryPoolMetric
.
setInstanceId
(((
Number
)
source
.
get
(
MemoryPoolMetricTable
.
COLUMN_INSTANCE_ID
)).
intValue
());
memoryPoolMetric
.
setPoolType
(((
Number
)
source
.
get
(
MemoryPoolMetricTable
.
COLUMN_POOL_TYPE
)).
intValue
());
memoryPoolMetric
.
setInit
(((
Number
)
source
.
get
(
MemoryPoolMetricTable
.
COLUMN_INIT
)).
longValue
());
memoryPoolMetric
.
setMax
(((
Number
)
source
.
get
(
MemoryPoolMetricTable
.
COLUMN_MAX
)).
longValue
());
memoryPoolMetric
.
setUsed
(((
Number
)
source
.
get
(
MemoryPoolMetricTable
.
COLUMN_USED
)).
longValue
());
memoryPoolMetric
.
setCommitted
(((
Number
)
source
.
get
(
MemoryPoolMetricTable
.
COLUMN_COMMITTED
)).
longValue
());
memoryPoolMetric
.
setTimes
(((
Number
)
source
.
get
(
MemoryPoolMetricTable
.
COLUMN_TIMES
)).
longValue
());
memoryPoolMetric
.
setTimeBucket
(((
Number
)
source
.
get
(
MemoryPoolMetricTable
.
COLUMN_TIME_BUCKET
)).
longValue
());
return
memoryPoolMetric
;
}
@Override
protected
final
Map
<
String
,
Object
>
esStreamDataToEsData
(
MemoryPoolMetric
streamData
)
{
...
...
@@ -53,6 +67,7 @@ public abstract class AbstractMemoryPoolMetricEsPersistenceDAO extends AbstractP
source
.
put
(
MemoryPoolMetricTable
.
COLUMN_MAX
,
streamData
.
getMax
());
source
.
put
(
MemoryPoolMetricTable
.
COLUMN_USED
,
streamData
.
getUsed
());
source
.
put
(
MemoryPoolMetricTable
.
COLUMN_COMMITTED
,
streamData
.
getCommitted
());
source
.
put
(
MemoryPoolMetricTable
.
COLUMN_TIMES
,
streamData
.
getTimes
());
source
.
put
(
MemoryPoolMetricTable
.
COLUMN_TIME_BUCKET
,
streamData
.
getTimeBucket
());
return
source
;
...
...
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/MemoryPoolMetricEsTableDefine.java
→
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/
mpool/Abstract
MemoryPoolMetricEsTableDefine.java
浏览文件 @
3f82baa9
...
...
@@ -16,8 +16,7 @@
*
*/
package
org.apache.skywalking.apm.collector.storage.es.define
;
package
org.apache.skywalking.apm.collector.storage.es.define.mpool
;
import
org.apache.skywalking.apm.collector.storage.es.base.define.ElasticSearchColumnDefine
;
import
org.apache.skywalking.apm.collector.storage.es.base.define.ElasticSearchTableDefine
;
...
...
@@ -26,23 +25,26 @@ import org.apache.skywalking.apm.collector.storage.table.jvm.MemoryPoolMetricTab
/**
* @author peng-yongsheng
*/
public
class
MemoryPoolMetricEsTableDefine
extends
ElasticSearchTableDefine
{
public
abstract
class
Abstract
MemoryPoolMetricEsTableDefine
extends
ElasticSearchTableDefine
{
public
MemoryPoolMetricEsTableDefine
(
)
{
super
(
MemoryPoolMetricTable
.
TABLE
);
public
AbstractMemoryPoolMetricEsTableDefine
(
String
name
)
{
super
(
name
);
}
@Override
public
int
refreshInterval
()
{
return
1
;
}
@Override
public
void
initialize
()
{
@Override
public
final
void
initialize
()
{
addColumn
(
new
ElasticSearchColumnDefine
(
MemoryPoolMetricTable
.
COLUMN_ID
,
ElasticSearchColumnDefine
.
Type
.
Keyword
.
name
()));
addColumn
(
new
ElasticSearchColumnDefine
(
MemoryPoolMetricTable
.
COLUMN_METRIC_ID
,
ElasticSearchColumnDefine
.
Type
.
Keyword
.
name
()));
addColumn
(
new
ElasticSearchColumnDefine
(
MemoryPoolMetricTable
.
COLUMN_INSTANCE_ID
,
ElasticSearchColumnDefine
.
Type
.
Integer
.
name
()));
addColumn
(
new
ElasticSearchColumnDefine
(
MemoryPoolMetricTable
.
COLUMN_POOL_TYPE
,
ElasticSearchColumnDefine
.
Type
.
Integer
.
name
()));
addColumn
(
new
ElasticSearchColumnDefine
(
MemoryPoolMetricTable
.
COLUMN_INIT
,
ElasticSearchColumnDefine
.
Type
.
Long
.
name
()));
addColumn
(
new
ElasticSearchColumnDefine
(
MemoryPoolMetricTable
.
COLUMN_MAX
,
ElasticSearchColumnDefine
.
Type
.
Long
.
name
()));
addColumn
(
new
ElasticSearchColumnDefine
(
MemoryPoolMetricTable
.
COLUMN_USED
,
ElasticSearchColumnDefine
.
Type
.
Long
.
name
()));
addColumn
(
new
ElasticSearchColumnDefine
(
MemoryPoolMetricTable
.
COLUMN_COMMITTED
,
ElasticSearchColumnDefine
.
Type
.
Long
.
name
()));
addColumn
(
new
ElasticSearchColumnDefine
(
MemoryPoolMetricTable
.
COLUMN_TIMES
,
ElasticSearchColumnDefine
.
Type
.
Long
.
name
()));
addColumn
(
new
ElasticSearchColumnDefine
(
MemoryPoolMetricTable
.
COLUMN_TIME_BUCKET
,
ElasticSearchColumnDefine
.
Type
.
Long
.
name
()));
}
}
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/mpool/MemoryPoolDayMetricEsTableDefine.java
0 → 100644
浏览文件 @
3f82baa9
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.storage.es.define.mpool
;
import
org.apache.skywalking.apm.collector.core.storage.TimePyramid
;
import
org.apache.skywalking.apm.collector.core.util.Const
;
import
org.apache.skywalking.apm.collector.storage.table.jvm.MemoryPoolMetricTable
;
/**
* @author peng-yongsheng
*/
public
class
MemoryPoolDayMetricEsTableDefine
extends
AbstractMemoryPoolMetricEsTableDefine
{
public
MemoryPoolDayMetricEsTableDefine
()
{
super
(
MemoryPoolMetricTable
.
TABLE
+
Const
.
ID_SPLIT
+
TimePyramid
.
Day
.
getName
());
}
@Override
public
int
refreshInterval
()
{
return
1
;
}
}
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/mpool/MemoryPoolHourMetricEsTableDefine.java
0 → 100644
浏览文件 @
3f82baa9
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.storage.es.define.mpool
;
import
org.apache.skywalking.apm.collector.core.storage.TimePyramid
;
import
org.apache.skywalking.apm.collector.core.util.Const
;
import
org.apache.skywalking.apm.collector.storage.table.jvm.MemoryPoolMetricTable
;
/**
* @author peng-yongsheng
*/
public
class
MemoryPoolHourMetricEsTableDefine
extends
AbstractMemoryPoolMetricEsTableDefine
{
public
MemoryPoolHourMetricEsTableDefine
()
{
super
(
MemoryPoolMetricTable
.
TABLE
+
Const
.
ID_SPLIT
+
TimePyramid
.
Hour
.
getName
());
}
@Override
public
int
refreshInterval
()
{
return
1
;
}
}
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/mpool/MemoryPoolMinuteMetricEsTableDefine.java
0 → 100644
浏览文件 @
3f82baa9
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.storage.es.define.mpool
;
import
org.apache.skywalking.apm.collector.core.storage.TimePyramid
;
import
org.apache.skywalking.apm.collector.core.util.Const
;
import
org.apache.skywalking.apm.collector.storage.table.jvm.MemoryPoolMetricTable
;
/**
* @author peng-yongsheng
*/
public
class
MemoryPoolMinuteMetricEsTableDefine
extends
AbstractMemoryPoolMetricEsTableDefine
{
public
MemoryPoolMinuteMetricEsTableDefine
()
{
super
(
MemoryPoolMetricTable
.
TABLE
+
Const
.
ID_SPLIT
+
TimePyramid
.
Minute
.
getName
());
}
@Override
public
int
refreshInterval
()
{
return
1
;
}
}
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/mpool/MemoryPoolMonthMetricEsTableDefine.java
0 → 100644
浏览文件 @
3f82baa9
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.storage.es.define.mpool
;
import
org.apache.skywalking.apm.collector.core.storage.TimePyramid
;
import
org.apache.skywalking.apm.collector.core.util.Const
;
import
org.apache.skywalking.apm.collector.storage.table.jvm.MemoryPoolMetricTable
;
/**
* @author peng-yongsheng
*/
public
class
MemoryPoolMonthMetricEsTableDefine
extends
AbstractMemoryPoolMetricEsTableDefine
{
public
MemoryPoolMonthMetricEsTableDefine
()
{
super
(
MemoryPoolMetricTable
.
TABLE
+
Const
.
ID_SPLIT
+
TimePyramid
.
Month
.
getName
());
}
@Override
public
int
refreshInterval
()
{
return
1
;
}
}
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/mpool/MemoryPoolSecondMetricEsTableDefine.java
0 → 100644
浏览文件 @
3f82baa9
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package
org.apache.skywalking.apm.collector.storage.es.define.mpool
;
import
org.apache.skywalking.apm.collector.core.storage.TimePyramid
;
import
org.apache.skywalking.apm.collector.core.util.Const
;
import
org.apache.skywalking.apm.collector.storage.table.jvm.MemoryPoolMetricTable
;
/**
* @author peng-yongsheng
*/
public
class
MemoryPoolSecondMetricEsTableDefine
extends
AbstractMemoryPoolMetricEsTableDefine
{
public
MemoryPoolSecondMetricEsTableDefine
()
{
super
(
MemoryPoolMetricTable
.
TABLE
+
Const
.
ID_SPLIT
+
TimePyramid
.
Second
.
getName
());
}
@Override
public
int
refreshInterval
()
{
return
1
;
}
}
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/resources/META-INF/defines/storage.define
浏览文件 @
3f82baa9
...
...
@@ -64,3 +64,9 @@ org.apache.skywalking.apm.collector.storage.es.define.alarm.ServiceAlarmEsTableD
org.apache.skywalking.apm.collector.storage.es.define.alarm.ServiceAlarmListEsTableDefine
org.apache.skywalking.apm.collector.storage.es.define.alarm.ServiceReferenceAlarmEsTableDefine
org.apache.skywalking.apm.collector.storage.es.define.alarm.ServiceReferenceAlarmListEsTableDefine
org.apache.skywalking.apm.collector.storage.es.define.mpool.MemoryPoolSecondMetricEsTableDefine
org.apache.skywalking.apm.collector.storage.es.define.mpool.MemoryPoolMinuteMetricEsTableDefine
org.apache.skywalking.apm.collector.storage.es.define.mpool.MemoryPoolHourMetricEsTableDefine
org.apache.skywalking.apm.collector.storage.es.define.mpool.MemoryPoolDayMetricEsTableDefine
org.apache.skywalking.apm.collector.storage.es.define.mpool.MemoryPoolMonthMetricEsTableDefine
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录