Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
山不在高_有仙则灵
SkyWalking
提交
8745cb2b
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,发现更多精彩内容 >>
提交
8745cb2b
编写于
1月 08, 2018
作者:
P
peng-yongsheng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Application reference metric pyramid aggregate test successful.
上级
06d638f6
变更
17
隐藏空白更改
内联
并排
Showing
17 changed file
with
265 addition
and
34 deletion
+265
-34
apm-collector/apm-collector-analysis/analysis-alarm/alarm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/alarm/provider/worker/application/ApplicationReferenceMetricAlarmGraph.java
...ker/application/ApplicationReferenceMetricAlarmGraph.java
+1
-1
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/application/metric/ApplicationMetricGraph.java
...der/worker/application/metric/ApplicationMetricGraph.java
+1
-1
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/application/refmetric/ApplicationReferenceDayMetricTransformNode.java
...refmetric/ApplicationReferenceDayMetricTransformNode.java
+4
-3
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/application/refmetric/ApplicationReferenceHourMetricTransformNode.java
...efmetric/ApplicationReferenceHourMetricTransformNode.java
+4
-3
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/application/refmetric/ApplicationReferenceMetricCopy.java
...application/refmetric/ApplicationReferenceMetricCopy.java
+60
-0
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/application/refmetric/ApplicationReferenceMetricGraph.java
...pplication/refmetric/ApplicationReferenceMetricGraph.java
+3
-3
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/application/refmetric/ApplicationReferenceMinuteMetricAggregationWorker.java
...ic/ApplicationReferenceMinuteMetricAggregationWorker.java
+5
-5
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/application/refmetric/ApplicationReferenceMinuteMetricRemoteWorker.java
...fmetric/ApplicationReferenceMinuteMetricRemoteWorker.java
+5
-5
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/application/refmetric/ApplicationReferenceMonthMetricTransformNode.java
...fmetric/ApplicationReferenceMonthMetricTransformNode.java
+4
-3
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
+8
-0
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
+9
-0
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/armp/AbstractApplicationReferenceMetricEsTableDefine.java
...armp/AbstractApplicationReferenceMetricEsTableDefine.java
+8
-10
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/armp/ApplicationReferenceDayMetricEsTableDefine.java
...fine/armp/ApplicationReferenceDayMetricEsTableDefine.java
+37
-0
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/armp/ApplicationReferenceHourMetricEsTableDefine.java
...ine/armp/ApplicationReferenceHourMetricEsTableDefine.java
+37
-0
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/armp/ApplicationReferenceMinuteMetricEsTableDefine.java
...e/armp/ApplicationReferenceMinuteMetricEsTableDefine.java
+37
-0
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/armp/ApplicationReferenceMonthMetricEsTableDefine.java
...ne/armp/ApplicationReferenceMonthMetricEsTableDefine.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
+5
-0
未找到文件。
apm-collector/apm-collector-analysis/analysis-alarm/alarm-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/alarm/provider/worker/application/ApplicationReferenceMetricAlarmGraph.java
浏览文件 @
8745cb2b
...
...
@@ -60,7 +60,7 @@ public class ApplicationReferenceMetricAlarmGraph {
.
addNext
(
new
ApplicationReferenceMetricAlarmToListNodeProcessor
())
.
addNext
(
new
ApplicationReferenceMetricAlarmListPersistenceWorker
.
Factory
(
moduleManager
).
create
(
workerCreateListener
));
link
(
graph
);
//
link(graph);
}
private
void
link
(
Graph
<
ApplicationReferenceMetric
>
graph
)
{
...
...
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/application/metric/ApplicationMetricGraph.java
浏览文件 @
8745cb2b
...
...
@@ -64,7 +64,7 @@ public class ApplicationMetricGraph {
remoteNode
.
addNext
(
new
ApplicationMonthMetricTransformNode
())
.
addNext
(
new
ApplicationMonthMetricPersistenceWorker
.
Factory
(
moduleManager
).
create
(
workerCreateListener
));
link
(
graph
);
//
link(graph);
}
private
void
link
(
Graph
<
ApplicationReferenceMetric
>
graph
)
{
...
...
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/application/refmetric/ApplicationReferenceDayMetricTransformNode.java
浏览文件 @
8745cb2b
...
...
@@ -37,9 +37,10 @@ public class ApplicationReferenceDayMetricTransformNode implements NodeProcessor
@Override
public
void
process
(
ApplicationReferenceMetric
applicationReferenceMetric
,
Next
<
ApplicationReferenceMetric
>
next
)
{
long
timeBucket
=
TimeBucketUtils
.
INSTANCE
.
minuteToDay
(
applicationReferenceMetric
.
getTimeBucket
());
applicationReferenceMetric
.
setId
(
String
.
valueOf
(
timeBucket
)
+
Const
.
ID_SPLIT
+
applicationReferenceMetric
.
getMetricId
());
applicationReferenceMetric
.
setTimeBucket
(
timeBucket
);
next
.
execute
(
applicationReferenceMetric
);
ApplicationReferenceMetric
newApplicationReferenceMetric
=
ApplicationReferenceMetricCopy
.
copy
(
applicationReferenceMetric
);
newApplicationReferenceMetric
.
setId
(
String
.
valueOf
(
timeBucket
)
+
Const
.
ID_SPLIT
+
applicationReferenceMetric
.
getMetricId
());
newApplicationReferenceMetric
.
setTimeBucket
(
timeBucket
);
next
.
execute
(
newApplicationReferenceMetric
);
}
}
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/application/refmetric/ApplicationReferenceHourMetricTransformNode.java
浏览文件 @
8745cb2b
...
...
@@ -37,9 +37,10 @@ public class ApplicationReferenceHourMetricTransformNode implements NodeProcesso
@Override
public
void
process
(
ApplicationReferenceMetric
applicationReferenceMetric
,
Next
<
ApplicationReferenceMetric
>
next
)
{
long
timeBucket
=
TimeBucketUtils
.
INSTANCE
.
minuteToHour
(
applicationReferenceMetric
.
getTimeBucket
());
applicationReferenceMetric
.
setId
(
String
.
valueOf
(
timeBucket
)
+
Const
.
ID_SPLIT
+
applicationReferenceMetric
.
getMetricId
());
applicationReferenceMetric
.
setTimeBucket
(
timeBucket
);
next
.
execute
(
applicationReferenceMetric
);
ApplicationReferenceMetric
newApplicationReferenceMetric
=
ApplicationReferenceMetricCopy
.
copy
(
applicationReferenceMetric
);
newApplicationReferenceMetric
.
setId
(
String
.
valueOf
(
timeBucket
)
+
Const
.
ID_SPLIT
+
applicationReferenceMetric
.
getMetricId
());
newApplicationReferenceMetric
.
setTimeBucket
(
timeBucket
);
next
.
execute
(
newApplicationReferenceMetric
);
}
}
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/application/refmetric/ApplicationReferenceMetricCopy.java
0 → 100644
浏览文件 @
8745cb2b
/*
* 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.metric.provider.worker.application.refmetric
;
import
org.apache.skywalking.apm.collector.storage.table.application.ApplicationReferenceMetric
;
/**
* @author peng-yongsheng
*/
public
class
ApplicationReferenceMetricCopy
{
public
static
ApplicationReferenceMetric
copy
(
ApplicationReferenceMetric
applicationReferenceMetric
)
{
ApplicationReferenceMetric
newApplicationReferenceMetric
=
new
ApplicationReferenceMetric
();
newApplicationReferenceMetric
.
setId
(
applicationReferenceMetric
.
getId
());
newApplicationReferenceMetric
.
setMetricId
(
applicationReferenceMetric
.
getMetricId
());
newApplicationReferenceMetric
.
setSourceValue
(
applicationReferenceMetric
.
getSourceValue
());
newApplicationReferenceMetric
.
setFrontApplicationId
(
applicationReferenceMetric
.
getFrontApplicationId
());
newApplicationReferenceMetric
.
setBehindApplicationId
(
applicationReferenceMetric
.
getBehindApplicationId
());
newApplicationReferenceMetric
.
setTransactionCalls
(
applicationReferenceMetric
.
getTransactionCalls
());
newApplicationReferenceMetric
.
setTransactionDurationSum
(
applicationReferenceMetric
.
getTransactionDurationSum
());
newApplicationReferenceMetric
.
setTransactionErrorCalls
(
applicationReferenceMetric
.
getTransactionErrorCalls
());
newApplicationReferenceMetric
.
setTransactionErrorDurationSum
(
applicationReferenceMetric
.
getTransactionErrorDurationSum
());
newApplicationReferenceMetric
.
setBusinessTransactionCalls
(
applicationReferenceMetric
.
getBusinessTransactionCalls
());
newApplicationReferenceMetric
.
setBusinessTransactionDurationSum
(
applicationReferenceMetric
.
getBusinessTransactionDurationSum
());
newApplicationReferenceMetric
.
setBusinessTransactionErrorCalls
(
applicationReferenceMetric
.
getBusinessTransactionErrorCalls
());
newApplicationReferenceMetric
.
setBusinessTransactionErrorDurationSum
(
applicationReferenceMetric
.
getBusinessTransactionErrorDurationSum
());
newApplicationReferenceMetric
.
setMqTransactionCalls
(
applicationReferenceMetric
.
getMqTransactionCalls
());
newApplicationReferenceMetric
.
setMqTransactionDurationSum
(
applicationReferenceMetric
.
getMqTransactionDurationSum
());
newApplicationReferenceMetric
.
setMqTransactionErrorCalls
(
applicationReferenceMetric
.
getMqTransactionErrorCalls
());
newApplicationReferenceMetric
.
setMqTransactionErrorDurationSum
(
applicationReferenceMetric
.
getMqTransactionErrorDurationSum
());
newApplicationReferenceMetric
.
setSatisfiedCount
(
applicationReferenceMetric
.
getSatisfiedCount
());
newApplicationReferenceMetric
.
setToleratingCount
(
applicationReferenceMetric
.
getToleratingCount
());
newApplicationReferenceMetric
.
setFrustratedCount
(
applicationReferenceMetric
.
getFrustratedCount
());
newApplicationReferenceMetric
.
setTimeBucket
(
applicationReferenceMetric
.
getTimeBucket
());
return
newApplicationReferenceMetric
;
}
}
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/application/refmetric/ApplicationReferenceMetricGraph.java
浏览文件 @
8745cb2b
...
...
@@ -50,8 +50,8 @@ public class ApplicationReferenceMetricGraph {
Graph
<
InstanceReferenceMetric
>
graph
=
GraphManager
.
INSTANCE
.
createIfAbsent
(
MetricGraphIdDefine
.
APPLICATION_REFERENCE_METRIC_GRAPH_ID
,
InstanceReferenceMetric
.
class
);
Node
<
ApplicationReferenceMetric
,
ApplicationReferenceMetric
>
remoteNode
=
graph
.
addNode
(
new
ApplicationReferenceMetricAggregationWorker
.
Factory
(
moduleManager
).
create
(
workerCreateListener
))
.
addNext
(
new
ApplicationReferenceMetricRemoteWorker
.
Factory
(
moduleManager
,
remoteSenderService
,
MetricGraphIdDefine
.
APPLICATION_REFERENCE_METRIC_GRAPH_ID
).
create
(
workerCreateListener
));
Node
<
ApplicationReferenceMetric
,
ApplicationReferenceMetric
>
remoteNode
=
graph
.
addNode
(
new
ApplicationReferenceM
inuteM
etricAggregationWorker
.
Factory
(
moduleManager
).
create
(
workerCreateListener
))
.
addNext
(
new
ApplicationReferenceM
inuteM
etricRemoteWorker
.
Factory
(
moduleManager
,
remoteSenderService
,
MetricGraphIdDefine
.
APPLICATION_REFERENCE_METRIC_GRAPH_ID
).
create
(
workerCreateListener
));
remoteNode
.
addNext
(
new
ApplicationReferenceMinuteMetricPersistenceWorker
.
Factory
(
moduleManager
).
create
(
workerCreateListener
));
...
...
@@ -64,7 +64,7 @@ public class ApplicationReferenceMetricGraph {
remoteNode
.
addNext
(
new
ApplicationReferenceMonthMetricTransformNode
())
.
addNext
(
new
ApplicationReferenceMonthMetricPersistenceWorker
.
Factory
(
moduleManager
).
create
(
workerCreateListener
));
//
link(graph);
link
(
graph
);
}
private
void
link
(
Graph
<
InstanceReferenceMetric
>
graph
)
{
...
...
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/application/refmetric/ApplicationReferenceMetricAggregationWorker.java
→
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/application/refmetric/ApplicationReferenceM
inuteM
etricAggregationWorker.java
浏览文件 @
8745cb2b
...
...
@@ -34,12 +34,12 @@ import org.apache.skywalking.apm.collector.storage.table.instance.InstanceRefere
/**
* @author peng-yongsheng
*/
public
class
ApplicationReferenceMetricAggregationWorker
extends
AggregationWorker
<
InstanceReferenceMetric
,
ApplicationReferenceMetric
>
{
public
class
ApplicationReferenceM
inuteM
etricAggregationWorker
extends
AggregationWorker
<
InstanceReferenceMetric
,
ApplicationReferenceMetric
>
{
private
final
InstanceCacheService
instanceCacheService
;
private
final
IApdexThresholdService
apdexThresholdService
;
public
ApplicationReferenceMetricAggregationWorker
(
ModuleManager
moduleManager
)
{
public
ApplicationReferenceM
inuteM
etricAggregationWorker
(
ModuleManager
moduleManager
)
{
super
(
moduleManager
);
this
.
instanceCacheService
=
moduleManager
.
find
(
CacheModule
.
NAME
).
getService
(
InstanceCacheService
.
class
);
this
.
apdexThresholdService
=
moduleManager
.
find
(
ConfigurationModule
.
NAME
).
getService
(
IApdexThresholdService
.
class
);
...
...
@@ -96,14 +96,14 @@ public class ApplicationReferenceMetricAggregationWorker extends AggregationWork
return
applicationReferenceMetric
;
}
public
static
class
Factory
extends
AbstractLocalAsyncWorkerProvider
<
InstanceReferenceMetric
,
ApplicationReferenceMetric
,
ApplicationReferenceMetricAggregationWorker
>
{
public
static
class
Factory
extends
AbstractLocalAsyncWorkerProvider
<
InstanceReferenceMetric
,
ApplicationReferenceMetric
,
ApplicationReferenceM
inuteM
etricAggregationWorker
>
{
public
Factory
(
ModuleManager
moduleManager
)
{
super
(
moduleManager
);
}
@Override
public
ApplicationReferenceMetricAggregationWorker
workerInstance
(
ModuleManager
moduleManager
)
{
return
new
ApplicationReferenceMetricAggregationWorker
(
moduleManager
);
@Override
public
ApplicationReferenceM
inuteM
etricAggregationWorker
workerInstance
(
ModuleManager
moduleManager
)
{
return
new
ApplicationReferenceM
inuteM
etricAggregationWorker
(
moduleManager
);
}
@Override
...
...
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/application/refmetric/ApplicationReferenceMetricRemoteWorker.java
→
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/application/refmetric/ApplicationReferenceM
inuteM
etricRemoteWorker.java
浏览文件 @
8745cb2b
...
...
@@ -30,9 +30,9 @@ import org.apache.skywalking.apm.collector.storage.table.application.Application
/**
* @author peng-yongsheng
*/
public
class
ApplicationReferenceMetricRemoteWorker
extends
AbstractRemoteWorker
<
ApplicationReferenceMetric
,
ApplicationReferenceMetric
>
{
public
class
ApplicationReferenceM
inuteM
etricRemoteWorker
extends
AbstractRemoteWorker
<
ApplicationReferenceMetric
,
ApplicationReferenceMetric
>
{
ApplicationReferenceMetricRemoteWorker
(
ModuleManager
moduleManager
)
{
ApplicationReferenceM
inuteM
etricRemoteWorker
(
ModuleManager
moduleManager
)
{
super
(
moduleManager
);
}
...
...
@@ -48,13 +48,13 @@ public class ApplicationReferenceMetricRemoteWorker extends AbstractRemoteWorker
return
Selector
.
HashCode
;
}
public
static
class
Factory
extends
AbstractRemoteWorkerProvider
<
ApplicationReferenceMetric
,
ApplicationReferenceMetric
,
ApplicationReferenceMetricRemoteWorker
>
{
public
static
class
Factory
extends
AbstractRemoteWorkerProvider
<
ApplicationReferenceMetric
,
ApplicationReferenceMetric
,
ApplicationReferenceM
inuteM
etricRemoteWorker
>
{
public
Factory
(
ModuleManager
moduleManager
,
RemoteSenderService
remoteSenderService
,
int
graphId
)
{
super
(
moduleManager
,
remoteSenderService
,
graphId
);
}
@Override
public
ApplicationReferenceMetricRemoteWorker
workerInstance
(
ModuleManager
moduleManager
)
{
return
new
ApplicationReferenceMetricRemoteWorker
(
moduleManager
);
@Override
public
ApplicationReferenceM
inuteM
etricRemoteWorker
workerInstance
(
ModuleManager
moduleManager
)
{
return
new
ApplicationReferenceM
inuteM
etricRemoteWorker
(
moduleManager
);
}
}
}
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/application/refmetric/ApplicationReferenceMonthMetricTransformNode.java
浏览文件 @
8745cb2b
...
...
@@ -37,9 +37,10 @@ public class ApplicationReferenceMonthMetricTransformNode implements NodeProcess
@Override
public
void
process
(
ApplicationReferenceMetric
applicationReferenceMetric
,
Next
<
ApplicationReferenceMetric
>
next
)
{
long
timeBucket
=
TimeBucketUtils
.
INSTANCE
.
minuteToMonth
(
applicationReferenceMetric
.
getTimeBucket
());
applicationReferenceMetric
.
setId
(
String
.
valueOf
(
timeBucket
)
+
Const
.
ID_SPLIT
+
applicationReferenceMetric
.
getMetricId
());
applicationReferenceMetric
.
setTimeBucket
(
timeBucket
);
next
.
execute
(
applicationReferenceMetric
);
ApplicationReferenceMetric
newApplicationReferenceMetric
=
ApplicationReferenceMetricCopy
.
copy
(
applicationReferenceMetric
);
newApplicationReferenceMetric
.
setId
(
String
.
valueOf
(
timeBucket
)
+
Const
.
ID_SPLIT
+
applicationReferenceMetric
.
getMetricId
());
newApplicationReferenceMetric
.
setTimeBucket
(
timeBucket
);
next
.
execute
(
newApplicationReferenceMetric
);
}
}
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/StorageModule.java
浏览文件 @
8745cb2b
...
...
@@ -64,7 +64,10 @@ import org.apache.skywalking.apm.collector.storage.dao.ampp.IApplicationMappingD
import
org.apache.skywalking.apm.collector.storage.dao.ampp.IApplicationMappingHourPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.ampp.IApplicationMappingMinutePersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.ampp.IApplicationMappingMonthPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.armp.IApplicationReferenceDayMetricPersistenceDAO
;
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.cpump.ICpuSecondMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.gcmp.IGCSecondMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.imp.IInstanceMinuteMetricPersistenceDAO
;
...
...
@@ -152,7 +155,12 @@ public class StorageModule extends Module {
classes
.
add
(
IGlobalTracePersistenceDAO
.
class
);
classes
.
add
(
IApplicationMinuteMetricPersistenceDAO
.
class
);
classes
.
add
(
IApplicationReferenceMinuteMetricPersistenceDAO
.
class
);
classes
.
add
(
IApplicationReferenceHourMetricPersistenceDAO
.
class
);
classes
.
add
(
IApplicationReferenceDayMetricPersistenceDAO
.
class
);
classes
.
add
(
IApplicationReferenceMonthMetricPersistenceDAO
.
class
);
classes
.
add
(
ISegmentCostPersistenceDAO
.
class
);
classes
.
add
(
ISegmentPersistenceDAO
.
class
);
...
...
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/StorageModuleEsProvider.java
浏览文件 @
8745cb2b
...
...
@@ -73,7 +73,10 @@ import org.apache.skywalking.apm.collector.storage.dao.ampp.IApplicationMappingD
import
org.apache.skywalking.apm.collector.storage.dao.ampp.IApplicationMappingHourPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.ampp.IApplicationMappingMinutePersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.ampp.IApplicationMappingMonthPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.armp.IApplicationReferenceDayMetricPersistenceDAO
;
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.cpump.ICpuSecondMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.gcmp.IGCSecondMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.imp.IInstanceMinuteMetricPersistenceDAO
;
...
...
@@ -143,7 +146,10 @@ import org.apache.skywalking.apm.collector.storage.es.dao.ampp.ApplicationMappin
import
org.apache.skywalking.apm.collector.storage.es.dao.ampp.ApplicationMappingHourEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.ampp.ApplicationMappingMinuteEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.ampp.ApplicationMappingMonthEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.armp.ApplicationReferenceDayMetricEsPersistenceDAO
;
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.cpump.CpuSecondMetricEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.gcmp.GCSecondMetricEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.imp.InstanceMinuteMetricEsPersistenceDAO
;
...
...
@@ -283,6 +289,9 @@ public class StorageModuleEsProvider extends ModuleProvider {
this
.
registerServiceImplementation
(
IApplicationMinuteMetricPersistenceDAO
.
class
,
new
ApplicationMinuteMetricEsPersistenceDAO
(
elasticSearchClient
));
this
.
registerServiceImplementation
(
IApplicationReferenceMinuteMetricPersistenceDAO
.
class
,
new
ApplicationReferenceMinuteMetricEsPersistenceDAO
(
elasticSearchClient
));
this
.
registerServiceImplementation
(
IApplicationReferenceHourMetricPersistenceDAO
.
class
,
new
ApplicationReferenceHourMetricEsPersistenceDAO
(
elasticSearchClient
));
this
.
registerServiceImplementation
(
IApplicationReferenceDayMetricPersistenceDAO
.
class
,
new
ApplicationReferenceDayMetricEsPersistenceDAO
(
elasticSearchClient
));
this
.
registerServiceImplementation
(
IApplicationReferenceMonthMetricPersistenceDAO
.
class
,
new
ApplicationReferenceMonthMetricEsPersistenceDAO
(
elasticSearchClient
));
this
.
registerServiceImplementation
(
ISegmentCostPersistenceDAO
.
class
,
new
SegmentCostEsPersistenceDAO
(
elasticSearchClient
));
this
.
registerServiceImplementation
(
ISegmentPersistenceDAO
.
class
,
new
SegmentEsPersistenceDAO
(
elasticSearchClient
));
...
...
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/ApplicationReferenceMetricEsTableDefine.java
→
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/
armp/Abstract
ApplicationReferenceMetricEsTableDefine.java
浏览文件 @
8745cb2b
...
...
@@ -16,8 +16,7 @@
*
*/
package
org.apache.skywalking.apm.collector.storage.es.define
;
package
org.apache.skywalking.apm.collector.storage.es.define.armp
;
import
org.apache.skywalking.apm.collector.storage.es.base.define.ElasticSearchColumnDefine
;
import
org.apache.skywalking.apm.collector.storage.es.base.define.ElasticSearchTableDefine
;
...
...
@@ -26,19 +25,18 @@ import org.apache.skywalking.apm.collector.storage.table.application.Application
/**
* @author peng-yongsheng
*/
public
class
ApplicationReferenceMetricEsTableDefine
extends
ElasticSearchTableDefine
{
public
ApplicationReferenceMetricEsTableDefine
()
{
super
(
ApplicationReferenceMetricTable
.
TABLE
);
}
public
abstract
class
AbstractApplicationReferenceMetricEsTableDefine
extends
ElasticSearchTableDefine
{
@Override
public
int
refreshInterval
(
)
{
return
2
;
public
AbstractApplicationReferenceMetricEsTableDefine
(
String
name
)
{
super
(
name
)
;
}
@Override
public
void
initialize
()
{
@Override
public
final
void
initialize
()
{
addColumn
(
new
ElasticSearchColumnDefine
(
ApplicationReferenceMetricTable
.
COLUMN_ID
,
ElasticSearchColumnDefine
.
Type
.
Keyword
.
name
()));
addColumn
(
new
ElasticSearchColumnDefine
(
ApplicationReferenceMetricTable
.
COLUMN_METRIC_ID
,
ElasticSearchColumnDefine
.
Type
.
Keyword
.
name
()));
addColumn
(
new
ElasticSearchColumnDefine
(
ApplicationReferenceMetricTable
.
COLUMN_FRONT_APPLICATION_ID
,
ElasticSearchColumnDefine
.
Type
.
Integer
.
name
()));
addColumn
(
new
ElasticSearchColumnDefine
(
ApplicationReferenceMetricTable
.
COLUMN_BEHIND_APPLICATION_ID
,
ElasticSearchColumnDefine
.
Type
.
Integer
.
name
()));
addColumn
(
new
ElasticSearchColumnDefine
(
ApplicationReferenceMetricTable
.
COLUMN_SOURCE_VALUE
,
ElasticSearchColumnDefine
.
Type
.
Integer
.
name
()));
addColumn
(
new
ElasticSearchColumnDefine
(
ApplicationReferenceMetricTable
.
COLUMN_TRANSACTION_CALLS
,
ElasticSearchColumnDefine
.
Type
.
Long
.
name
()));
addColumn
(
new
ElasticSearchColumnDefine
(
ApplicationReferenceMetricTable
.
COLUMN_TRANSACTION_ERROR_CALLS
,
ElasticSearchColumnDefine
.
Type
.
Long
.
name
()));
...
...
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/armp/ApplicationReferenceDayMetricEsTableDefine.java
0 → 100644
浏览文件 @
8745cb2b
/*
* 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.armp
;
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.application.ApplicationReferenceMetricTable
;
/**
* @author peng-yongsheng
*/
public
class
ApplicationReferenceDayMetricEsTableDefine
extends
AbstractApplicationReferenceMetricEsTableDefine
{
public
ApplicationReferenceDayMetricEsTableDefine
()
{
super
(
ApplicationReferenceMetricTable
.
TABLE
+
Const
.
ID_SPLIT
+
TimePyramid
.
Day
.
getName
());
}
@Override
public
int
refreshInterval
()
{
return
2
;
}
}
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/armp/ApplicationReferenceHourMetricEsTableDefine.java
0 → 100644
浏览文件 @
8745cb2b
/*
* 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.armp
;
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.application.ApplicationReferenceMetricTable
;
/**
* @author peng-yongsheng
*/
public
class
ApplicationReferenceHourMetricEsTableDefine
extends
AbstractApplicationReferenceMetricEsTableDefine
{
public
ApplicationReferenceHourMetricEsTableDefine
()
{
super
(
ApplicationReferenceMetricTable
.
TABLE
+
Const
.
ID_SPLIT
+
TimePyramid
.
Hour
.
getName
());
}
@Override
public
int
refreshInterval
()
{
return
2
;
}
}
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/armp/ApplicationReferenceMinuteMetricEsTableDefine.java
0 → 100644
浏览文件 @
8745cb2b
/*
* 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.armp
;
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.application.ApplicationReferenceMetricTable
;
/**
* @author peng-yongsheng
*/
public
class
ApplicationReferenceMinuteMetricEsTableDefine
extends
AbstractApplicationReferenceMetricEsTableDefine
{
public
ApplicationReferenceMinuteMetricEsTableDefine
()
{
super
(
ApplicationReferenceMetricTable
.
TABLE
+
Const
.
ID_SPLIT
+
TimePyramid
.
Minute
.
getName
());
}
@Override
public
int
refreshInterval
()
{
return
2
;
}
}
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/armp/ApplicationReferenceMonthMetricEsTableDefine.java
0 → 100644
浏览文件 @
8745cb2b
/*
* 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.armp
;
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.application.ApplicationReferenceMetricTable
;
/**
* @author peng-yongsheng
*/
public
class
ApplicationReferenceMonthMetricEsTableDefine
extends
AbstractApplicationReferenceMetricEsTableDefine
{
public
ApplicationReferenceMonthMetricEsTableDefine
()
{
super
(
ApplicationReferenceMetricTable
.
TABLE
+
Const
.
ID_SPLIT
+
TimePyramid
.
Month
.
getName
());
}
@Override
public
int
refreshInterval
()
{
return
2
;
}
}
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/resources/META-INF/defines/storage.define
浏览文件 @
8745cb2b
...
...
@@ -33,6 +33,11 @@ org.apache.skywalking.apm.collector.storage.es.define.irmp.InstanceReferenceHour
org.apache.skywalking.apm.collector.storage.es.define.irmp.InstanceReferenceDayMetricEsTableDefine
org.apache.skywalking.apm.collector.storage.es.define.irmp.InstanceReferenceMonthMetricEsTableDefine
org.apache.skywalking.apm.collector.storage.es.define.armp.ApplicationReferenceMinuteMetricEsTableDefine
org.apache.skywalking.apm.collector.storage.es.define.armp.ApplicationReferenceHourMetricEsTableDefine
org.apache.skywalking.apm.collector.storage.es.define.armp.ApplicationReferenceDayMetricEsTableDefine
org.apache.skywalking.apm.collector.storage.es.define.armp.ApplicationReferenceMonthMetricEsTableDefine
org.apache.skywalking.apm.collector.storage.es.define.GlobalTraceEsTableDefine
org.apache.skywalking.apm.collector.storage.es.define.SegmentEsTableDefine
org.apache.skywalking.apm.collector.storage.es.define.SegmentCostEsTableDefine
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录