Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
山不在高_有仙则灵
SkyWalking
提交
e909ea02
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,发现更多精彩内容 >>
提交
e909ea02
编写于
1月 08, 2018
作者:
P
peng-yongsheng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Application mapping pyramid aggregate successful.
上级
a39f95fc
变更
17
隐藏空白更改
内联
并排
Showing
17 changed file
with
221 addition
and
32 deletion
+221
-32
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/AnalysisMetricModuleProvider.java
...nalysis/metric/provider/AnalysisMetricModuleProvider.java
+2
-1
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/application/mapping/ApplicationMappingDayTransformNode.java
...plication/mapping/ApplicationMappingDayTransformNode.java
+9
-3
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/application/mapping/ApplicationMappingGraph.java
...r/worker/application/mapping/ApplicationMappingGraph.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/mapping/ApplicationMappingHourTransformNode.java
...lication/mapping/ApplicationMappingHourTransformNode.java
+8
-3
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/application/mapping/ApplicationMappingMinuteRemoteWorker.java
...ication/mapping/ApplicationMappingMinuteRemoteWorker.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/mapping/ApplicationMappingMonthTransformNode.java
...ication/mapping/ApplicationMappingMonthTransformNode.java
+9
-3
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/application/mapping/ApplicationMappingSpanListener.java
...r/application/mapping/ApplicationMappingSpanListener.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
-1
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/table/application/ApplicationMapping.java
...llector/storage/table/application/ApplicationMapping.java
+4
-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
+11
-1
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/appcomp/AbstractApplicationComponentEsTableDefine.java
...ne/appcomp/AbstractApplicationComponentEsTableDefine.java
+1
-0
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/appmapping/AbstractApplicationMappingEsTableDefine.java
...e/appmapping/AbstractApplicationMappingEsTableDefine.java
+7
-11
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/appmapping/ApplicationMappingDayEsTableDefine.java
...define/appmapping/ApplicationMappingDayEsTableDefine.java
+37
-0
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/appmapping/ApplicationMappingHourEsTableDefine.java
...efine/appmapping/ApplicationMappingHourEsTableDefine.java
+37
-0
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/appmapping/ApplicationMappingMinuteEsTableDefine.java
...ine/appmapping/ApplicationMappingMinuteEsTableDefine.java
+37
-0
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/appmapping/ApplicationMappingMonthEsTableDefine.java
...fine/appmapping/ApplicationMappingMonthEsTableDefine.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
+4
-0
未找到文件。
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/AnalysisMetricModuleProvider.java
浏览文件 @
e909ea02
...
...
@@ -23,6 +23,7 @@ import org.apache.skywalking.apm.collector.analysis.metric.define.AnalysisMetric
import
org.apache.skywalking.apm.collector.analysis.metric.provider.worker.application.component.ApplicationComponentGraph
;
import
org.apache.skywalking.apm.collector.analysis.metric.provider.worker.application.component.ApplicationComponentSpanListener
;
import
org.apache.skywalking.apm.collector.analysis.metric.provider.worker.application.mapping.ApplicationMappingGraph
;
import
org.apache.skywalking.apm.collector.analysis.metric.provider.worker.application.mapping.ApplicationMappingSpanListener
;
import
org.apache.skywalking.apm.collector.analysis.metric.provider.worker.application.metric.ApplicationMetricGraph
;
import
org.apache.skywalking.apm.collector.analysis.metric.provider.worker.application.refmetric.ApplicationReferenceMetricGraph
;
import
org.apache.skywalking.apm.collector.analysis.metric.provider.worker.global.GlobalTraceGraph
;
...
...
@@ -82,7 +83,7 @@ public class AnalysisMetricModuleProvider extends ModuleProvider {
ISegmentParserListenerRegister
segmentParserListenerRegister
=
getManager
().
find
(
AnalysisSegmentParserModule
.
NAME
).
getService
(
ISegmentParserListenerRegister
.
class
);
// segmentParserListenerRegister.register(new ServiceReferenceMetricSpanListener.Factory());
segmentParserListenerRegister
.
register
(
new
ApplicationComponentSpanListener
.
Factory
());
//
segmentParserListenerRegister.register(new ApplicationMappingSpanListener.Factory());
segmentParserListenerRegister
.
register
(
new
ApplicationMappingSpanListener
.
Factory
());
// segmentParserListenerRegister.register(new InstanceMappingSpanListener.Factory());
// segmentParserListenerRegister.register(new ServiceEntrySpanListener.Factory());
// segmentParserListenerRegister.register(new GlobalTraceSpanListener.Factory());
...
...
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/application/mapping/ApplicationMappingDayTransformNode.java
浏览文件 @
e909ea02
...
...
@@ -37,9 +37,15 @@ public class ApplicationMappingDayTransformNode implements NodeProcessor<Applica
@Override
public
void
process
(
ApplicationMapping
applicationMapping
,
Next
<
ApplicationMapping
>
next
)
{
long
timeBucket
=
TimeBucketUtils
.
INSTANCE
.
minuteToDay
(
applicationMapping
.
getTimeBucket
());
applicationMapping
.
setId
(
String
.
valueOf
(
timeBucket
)
+
Const
.
ID_SPLIT
+
applicationMapping
.
getMetricId
());
applicationMapping
.
setTimeBucket
(
timeBucket
);
next
.
execute
(
applicationMapping
);
ApplicationMapping
newApplicationMapping
=
new
ApplicationMapping
();
newApplicationMapping
.
setId
(
String
.
valueOf
(
timeBucket
)
+
Const
.
ID_SPLIT
+
applicationMapping
.
getMetricId
());
newApplicationMapping
.
setMetricId
(
applicationMapping
.
getMetricId
());
newApplicationMapping
.
setTimeBucket
(
timeBucket
);
newApplicationMapping
.
setApplicationId
(
applicationMapping
.
getApplicationId
());
newApplicationMapping
.
setAddressId
(
applicationMapping
.
getAddressId
());
next
.
execute
(
newApplicationMapping
);
}
}
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/application/mapping/ApplicationMappingGraph.java
浏览文件 @
e909ea02
...
...
@@ -45,7 +45,7 @@ public class ApplicationMappingGraph {
Node
<
ApplicationMapping
,
ApplicationMapping
>
remoteNode
=
GraphManager
.
INSTANCE
.
createIfAbsent
(
MetricGraphIdDefine
.
APPLICATION_MAPPING_GRAPH_ID
,
ApplicationMapping
.
class
)
.
addNode
(
new
ApplicationMappingMinuteAggregationWorker
.
Factory
(
moduleManager
).
create
(
workerCreateListener
))
.
addNext
(
new
ApplicationMappingRemoteWorker
.
Factory
(
moduleManager
,
remoteSenderService
,
MetricGraphIdDefine
.
APPLICATION_MAPPING_GRAPH_ID
).
create
(
workerCreateListener
));
.
addNext
(
new
ApplicationMapping
Minute
RemoteWorker
.
Factory
(
moduleManager
,
remoteSenderService
,
MetricGraphIdDefine
.
APPLICATION_MAPPING_GRAPH_ID
).
create
(
workerCreateListener
));
remoteNode
.
addNext
(
new
ApplicationMappingMinutePersistenceWorker
.
Factory
(
moduleManager
).
create
(
workerCreateListener
));
...
...
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/application/mapping/ApplicationMappingHourTransformNode.java
浏览文件 @
e909ea02
...
...
@@ -37,9 +37,14 @@ public class ApplicationMappingHourTransformNode implements NodeProcessor<Applic
@Override
public
void
process
(
ApplicationMapping
applicationMapping
,
Next
<
ApplicationMapping
>
next
)
{
long
timeBucket
=
TimeBucketUtils
.
INSTANCE
.
minuteToHour
(
applicationMapping
.
getTimeBucket
());
applicationMapping
.
setId
(
String
.
valueOf
(
timeBucket
)
+
Const
.
ID_SPLIT
+
applicationMapping
.
getMetricId
());
applicationMapping
.
setTimeBucket
(
timeBucket
);
next
.
execute
(
applicationMapping
);
ApplicationMapping
newApplicationMapping
=
new
ApplicationMapping
();
newApplicationMapping
.
setId
(
String
.
valueOf
(
timeBucket
)
+
Const
.
ID_SPLIT
+
applicationMapping
.
getMetricId
());
newApplicationMapping
.
setMetricId
(
applicationMapping
.
getMetricId
());
newApplicationMapping
.
setTimeBucket
(
timeBucket
);
newApplicationMapping
.
setApplicationId
(
applicationMapping
.
getApplicationId
());
newApplicationMapping
.
setAddressId
(
applicationMapping
.
getAddressId
());
next
.
execute
(
newApplicationMapping
);
}
}
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/application/mapping/ApplicationMappingRemoteWorker.java
→
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/application/mapping/ApplicationMapping
Minute
RemoteWorker.java
浏览文件 @
e909ea02
...
...
@@ -30,9 +30,9 @@ import org.apache.skywalking.apm.collector.storage.table.application.Application
/**
* @author peng-yongsheng
*/
public
class
ApplicationMappingRemoteWorker
extends
AbstractRemoteWorker
<
ApplicationMapping
,
ApplicationMapping
>
{
public
class
ApplicationMapping
Minute
RemoteWorker
extends
AbstractRemoteWorker
<
ApplicationMapping
,
ApplicationMapping
>
{
ApplicationMappingRemoteWorker
(
ModuleManager
moduleManager
)
{
ApplicationMapping
Minute
RemoteWorker
(
ModuleManager
moduleManager
)
{
super
(
moduleManager
);
}
...
...
@@ -48,13 +48,13 @@ public class ApplicationMappingRemoteWorker extends AbstractRemoteWorker<Applica
return
Selector
.
HashCode
;
}
public
static
class
Factory
extends
AbstractRemoteWorkerProvider
<
ApplicationMapping
,
ApplicationMapping
,
ApplicationMappingRemoteWorker
>
{
public
static
class
Factory
extends
AbstractRemoteWorkerProvider
<
ApplicationMapping
,
ApplicationMapping
,
ApplicationMapping
Minute
RemoteWorker
>
{
public
Factory
(
ModuleManager
moduleManager
,
RemoteSenderService
remoteSenderService
,
int
graphId
)
{
super
(
moduleManager
,
remoteSenderService
,
graphId
);
}
@Override
public
ApplicationMappingRemoteWorker
workerInstance
(
ModuleManager
moduleManager
)
{
return
new
ApplicationMappingRemoteWorker
(
moduleManager
);
@Override
public
ApplicationMapping
Minute
RemoteWorker
workerInstance
(
ModuleManager
moduleManager
)
{
return
new
ApplicationMapping
Minute
RemoteWorker
(
moduleManager
);
}
}
}
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/application/mapping/ApplicationMappingMonthTransformNode.java
浏览文件 @
e909ea02
...
...
@@ -37,9 +37,15 @@ public class ApplicationMappingMonthTransformNode implements NodeProcessor<Appli
@Override
public
void
process
(
ApplicationMapping
applicationMapping
,
Next
<
ApplicationMapping
>
next
)
{
long
timeBucket
=
TimeBucketUtils
.
INSTANCE
.
minuteToMonth
(
applicationMapping
.
getTimeBucket
());
applicationMapping
.
setId
(
String
.
valueOf
(
timeBucket
)
+
Const
.
ID_SPLIT
+
applicationMapping
.
getMetricId
());
applicationMapping
.
setTimeBucket
(
timeBucket
);
next
.
execute
(
applicationMapping
);
ApplicationMapping
newApplicationMapping
=
new
ApplicationMapping
();
newApplicationMapping
.
setId
(
String
.
valueOf
(
timeBucket
)
+
Const
.
ID_SPLIT
+
applicationMapping
.
getMetricId
());
newApplicationMapping
.
setMetricId
(
applicationMapping
.
getMetricId
());
newApplicationMapping
.
setTimeBucket
(
timeBucket
);
newApplicationMapping
.
setApplicationId
(
applicationMapping
.
getApplicationId
());
newApplicationMapping
.
setAddressId
(
applicationMapping
.
getAddressId
());
next
.
execute
(
newApplicationMapping
);
}
}
apm-collector/apm-collector-analysis/analysis-metric/metric-provider/src/main/java/org/apache/skywalking/apm/collector/analysis/metric/provider/worker/application/mapping/ApplicationMappingSpanListener.java
浏览文件 @
e909ea02
...
...
@@ -52,8 +52,9 @@ public class ApplicationMappingSpanListener implements FirstSpanListener, EntryS
ApplicationMapping
applicationMapping
=
new
ApplicationMapping
();
applicationMapping
.
setApplicationId
(
applicationId
);
applicationMapping
.
setAddressId
(
spanDecorator
.
getRefs
(
i
).
getNetworkAddressId
());
String
id
=
String
.
valueOf
(
applicationId
)
+
Const
.
ID_SPLIT
+
String
.
valueOf
(
applicationMapping
.
getAddressId
());
applicationMapping
.
setId
(
id
);
String
metricId
=
String
.
valueOf
(
applicationId
)
+
Const
.
ID_SPLIT
+
String
.
valueOf
(
applicationMapping
.
getAddressId
());
applicationMapping
.
setMetricId
(
metricId
);
applicationMappings
.
add
(
applicationMapping
);
}
}
...
...
@@ -69,7 +70,7 @@ public class ApplicationMappingSpanListener implements FirstSpanListener, EntryS
logger
.
debug
(
"application mapping listener build"
);
Graph
<
ApplicationMapping
>
graph
=
GraphManager
.
INSTANCE
.
findGraph
(
MetricGraphIdDefine
.
APPLICATION_MAPPING_GRAPH_ID
,
ApplicationMapping
.
class
);
applicationMappings
.
forEach
(
applicationMapping
->
{
applicationMapping
.
setId
(
timeBucket
+
Const
.
ID_SPLIT
+
applicationMapping
.
getId
());
applicationMapping
.
setId
(
timeBucket
+
Const
.
ID_SPLIT
+
applicationMapping
.
get
Metric
Id
());
applicationMapping
.
setTimeBucket
(
timeBucket
);
logger
.
debug
(
"push to application mapping aggregation worker, id: {}"
,
applicationMapping
.
getId
());
graph
.
start
(
applicationMapping
);
...
...
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/StorageModule.java
浏览文件 @
e909ea02
...
...
@@ -62,7 +62,10 @@ import org.apache.skywalking.apm.collector.storage.dao.acp.IApplicationComponent
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.amp.IApplicationMinuteMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.ampp.IApplicationMappingDayPersistenceDAO
;
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.IApplicationReferenceMinuteMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.cpump.ICpuSecondMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.gcmp.IGCSecondMetricPersistenceDAO
;
...
...
@@ -127,8 +130,12 @@ public class StorageModule extends Module {
classes
.
add
(
IApplicationComponentDayPersistenceDAO
.
class
);
classes
.
add
(
IApplicationComponentMonthPersistenceDAO
.
class
);
classes
.
add
(
IGlobalTracePersistenceDAO
.
class
);
classes
.
add
(
IApplicationMappingMinutePersistenceDAO
.
class
);
classes
.
add
(
IApplicationMappingHourPersistenceDAO
.
class
);
classes
.
add
(
IApplicationMappingDayPersistenceDAO
.
class
);
classes
.
add
(
IApplicationMappingMonthPersistenceDAO
.
class
);
classes
.
add
(
IGlobalTracePersistenceDAO
.
class
);
classes
.
add
(
IApplicationMinuteMetricPersistenceDAO
.
class
);
classes
.
add
(
IApplicationReferenceMinuteMetricPersistenceDAO
.
class
);
classes
.
add
(
ISegmentCostPersistenceDAO
.
class
);
...
...
apm-collector/apm-collector-storage/collector-storage-define/src/main/java/org/apache/skywalking/apm/collector/storage/table/application/ApplicationMapping.java
浏览文件 @
e909ea02
...
...
@@ -30,18 +30,22 @@ public class ApplicationMapping extends StreamData {
private
static
final
Column
[]
STRING_COLUMNS
=
{
new
Column
(
ApplicationMappingTable
.
COLUMN_ID
,
new
NonOperation
()),
new
Column
(
ApplicationMappingTable
.
COLUMN_METRIC_ID
,
new
NonOperation
()),
};
private
static
final
Column
[]
LONG_COLUMNS
=
{
new
Column
(
ApplicationMappingTable
.
COLUMN_TIME_BUCKET
,
new
CoverOperation
()),
};
private
static
final
Column
[]
DOUBLE_COLUMNS
=
{};
private
static
final
Column
[]
INTEGER_COLUMNS
=
{
new
Column
(
ApplicationMappingTable
.
COLUMN_APPLICATION_ID
,
new
CoverOperation
()),
new
Column
(
ApplicationMappingTable
.
COLUMN_ADDRESS_ID
,
new
CoverOperation
()),
};
private
static
final
Column
[]
BOOLEAN_COLUMNS
=
{};
private
static
final
Column
[]
BYTE_COLUMNS
=
{};
public
ApplicationMapping
()
{
...
...
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/StorageModuleEsProvider.java
浏览文件 @
e909ea02
...
...
@@ -71,7 +71,10 @@ import org.apache.skywalking.apm.collector.storage.dao.acp.IApplicationComponent
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.amp.IApplicationMinuteMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.ampp.IApplicationMappingDayPersistenceDAO
;
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.IApplicationReferenceMinuteMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.cpump.ICpuSecondMetricPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.dao.gcmp.IGCSecondMetricPersistenceDAO
;
...
...
@@ -128,7 +131,10 @@ import org.apache.skywalking.apm.collector.storage.es.dao.acp.ApplicationCompone
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.amp.ApplicationMinuteMetricEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.ampp.ApplicationMappingDayEsPersistenceDAO
;
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.ApplicationReferenceMinuteMetricEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.cpump.CpuSecondMetricEsPersistenceDAO
;
import
org.apache.skywalking.apm.collector.storage.es.dao.gcmp.GCSecondMetricEsPersistenceDAO
;
...
...
@@ -243,8 +249,12 @@ public class StorageModuleEsProvider extends ModuleProvider {
this
.
registerServiceImplementation
(
IApplicationComponentDayPersistenceDAO
.
class
,
new
ApplicationComponentDayEsPersistenceDAO
(
elasticSearchClient
));
this
.
registerServiceImplementation
(
IApplicationComponentMonthPersistenceDAO
.
class
,
new
ApplicationComponentMonthEsPersistenceDAO
(
elasticSearchClient
));
this
.
registerServiceImplementation
(
IGlobalTracePersistenceDAO
.
class
,
new
GlobalTraceEsPersistenceDAO
(
elasticSearchClient
));
this
.
registerServiceImplementation
(
IApplicationMappingMinutePersistenceDAO
.
class
,
new
ApplicationMappingMinuteEsPersistenceDAO
(
elasticSearchClient
));
this
.
registerServiceImplementation
(
IApplicationMappingHourPersistenceDAO
.
class
,
new
ApplicationMappingHourEsPersistenceDAO
(
elasticSearchClient
));
this
.
registerServiceImplementation
(
IApplicationMappingDayPersistenceDAO
.
class
,
new
ApplicationMappingDayEsPersistenceDAO
(
elasticSearchClient
));
this
.
registerServiceImplementation
(
IApplicationMappingMonthPersistenceDAO
.
class
,
new
ApplicationMappingMonthEsPersistenceDAO
(
elasticSearchClient
));
this
.
registerServiceImplementation
(
IGlobalTracePersistenceDAO
.
class
,
new
GlobalTraceEsPersistenceDAO
(
elasticSearchClient
));
this
.
registerServiceImplementation
(
IApplicationMinuteMetricPersistenceDAO
.
class
,
new
ApplicationMinuteMetricEsPersistenceDAO
(
elasticSearchClient
));
this
.
registerServiceImplementation
(
IApplicationReferenceMinuteMetricPersistenceDAO
.
class
,
new
ApplicationReferenceMinuteMetricEsPersistenceDAO
(
elasticSearchClient
));
this
.
registerServiceImplementation
(
ISegmentCostPersistenceDAO
.
class
,
new
SegmentCostEsPersistenceDAO
(
elasticSearchClient
));
...
...
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/appcomp/AbstractApplicationComponentEsTableDefine.java
浏览文件 @
e909ea02
...
...
@@ -32,6 +32,7 @@ public abstract class AbstractApplicationComponentEsTableDefine extends ElasticS
}
@Override
public
final
void
initialize
()
{
addColumn
(
new
ElasticSearchColumnDefine
(
ApplicationComponentTable
.
COLUMN_METRIC_ID
,
ElasticSearchColumnDefine
.
Type
.
Keyword
.
name
()));
addColumn
(
new
ElasticSearchColumnDefine
(
ApplicationComponentTable
.
COLUMN_COMPONENT_ID
,
ElasticSearchColumnDefine
.
Type
.
Integer
.
name
()));
addColumn
(
new
ElasticSearchColumnDefine
(
ApplicationComponentTable
.
COLUMN_PEER_ID
,
ElasticSearchColumnDefine
.
Type
.
Integer
.
name
()));
addColumn
(
new
ElasticSearchColumnDefine
(
ApplicationComponentTable
.
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/ApplicationMappingEsTableDefine.java
→
apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/
appmapping/Abstract
ApplicationMappingEsTableDefine.java
浏览文件 @
e909ea02
...
...
@@ -16,27 +16,23 @@
*
*/
package
org.apache.skywalking.apm.collector.storage.es.define.appmapping
;
package
org.apache.skywalking.apm.collector.storage.es.define
;
import
org.apache.skywalking.apm.collector.storage.table.application.ApplicationMappingTable
;
import
org.apache.skywalking.apm.collector.storage.es.base.define.ElasticSearchColumnDefine
;
import
org.apache.skywalking.apm.collector.storage.es.base.define.ElasticSearchTableDefine
;
import
org.apache.skywalking.apm.collector.storage.table.application.ApplicationMappingTable
;
/**
* @author peng-yongsheng
*/
public
class
ApplicationMappingEsTableDefine
extends
ElasticSearchTableDefine
{
public
ApplicationMappingEsTableDefine
()
{
super
(
ApplicationMappingTable
.
TABLE
);
}
public
abstract
class
AbstractApplicationMappingEsTableDefine
extends
ElasticSearchTableDefine
{
@Override
public
int
refreshInterval
(
)
{
return
2
;
AbstractApplicationMappingEsTableDefine
(
String
name
)
{
super
(
name
)
;
}
@Override
public
void
initialize
()
{
@Override
public
final
void
initialize
()
{
addColumn
(
new
ElasticSearchColumnDefine
(
ApplicationMappingTable
.
COLUMN_METRIC_ID
,
ElasticSearchColumnDefine
.
Type
.
Keyword
.
name
()));
addColumn
(
new
ElasticSearchColumnDefine
(
ApplicationMappingTable
.
COLUMN_APPLICATION_ID
,
ElasticSearchColumnDefine
.
Type
.
Integer
.
name
()));
addColumn
(
new
ElasticSearchColumnDefine
(
ApplicationMappingTable
.
COLUMN_ADDRESS_ID
,
ElasticSearchColumnDefine
.
Type
.
Integer
.
name
()));
addColumn
(
new
ElasticSearchColumnDefine
(
ApplicationMappingTable
.
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/appmapping/ApplicationMappingDayEsTableDefine.java
0 → 100644
浏览文件 @
e909ea02
/*
* 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.appmapping
;
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.ApplicationMappingTable
;
/**
* @author peng-yongsheng
*/
public
class
ApplicationMappingDayEsTableDefine
extends
AbstractApplicationMappingEsTableDefine
{
public
ApplicationMappingDayEsTableDefine
()
{
super
(
ApplicationMappingTable
.
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/appmapping/ApplicationMappingHourEsTableDefine.java
0 → 100644
浏览文件 @
e909ea02
/*
* 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.appmapping
;
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.ApplicationMappingTable
;
/**
* @author peng-yongsheng
*/
public
class
ApplicationMappingHourEsTableDefine
extends
AbstractApplicationMappingEsTableDefine
{
public
ApplicationMappingHourEsTableDefine
()
{
super
(
ApplicationMappingTable
.
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/appmapping/ApplicationMappingMinuteEsTableDefine.java
0 → 100644
浏览文件 @
e909ea02
/*
* 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.appmapping
;
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.ApplicationMappingTable
;
/**
* @author peng-yongsheng
*/
public
class
ApplicationMappingMinuteEsTableDefine
extends
AbstractApplicationMappingEsTableDefine
{
public
ApplicationMappingMinuteEsTableDefine
()
{
super
(
ApplicationMappingTable
.
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/appmapping/ApplicationMappingMonthEsTableDefine.java
0 → 100644
浏览文件 @
e909ea02
/*
* 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.appmapping
;
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.ApplicationMappingTable
;
/**
* @author peng-yongsheng
*/
public
class
ApplicationMappingMonthEsTableDefine
extends
AbstractApplicationMappingEsTableDefine
{
public
ApplicationMappingMonthEsTableDefine
()
{
super
(
ApplicationMappingTable
.
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
浏览文件 @
e909ea02
...
...
@@ -8,3 +8,7 @@ org.apache.skywalking.apm.collector.storage.es.define.appcomp.ApplicationCompone
org.apache.skywalking.apm.collector.storage.es.define.appcomp.ApplicationComponentDayEsTableDefine
org.apache.skywalking.apm.collector.storage.es.define.appcomp.ApplicationComponentMonthEsTableDefine
org.apache.skywalking.apm.collector.storage.es.define.appmapping.ApplicationMappingMinuteEsTableDefine
org.apache.skywalking.apm.collector.storage.es.define.appmapping.ApplicationMappingHourEsTableDefine
org.apache.skywalking.apm.collector.storage.es.define.appmapping.ApplicationMappingDayEsTableDefine
org.apache.skywalking.apm.collector.storage.es.define.appmapping.ApplicationMappingMonthEsTableDefine
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录