-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The rest interface for instance health web ui test success.
- Loading branch information
1 parent
1187136
commit c1c7d9b
Showing
22 changed files
with
193 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
apm-collector/apm-collector-agentjvm/src/main/resources/META-INF/defines/es_dao.define
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
org.skywalking.apm.collector.agentjvm.worker.cpu.dao.CpuMetricEsDAO | ||
org.skywalking.apm.collector.agentjvm.worker.memory.dao.MemoryMetricEsDAO | ||
org.skywalking.apm.collector.agentjvm.worker.memorypool.dao.MemoryPoolMetricEsDAO | ||
org.skywalking.apm.collector.agentjvm.worker.gc.dao.GCMetricEsDAO | ||
org.skywalking.apm.collector.agentjvm.worker.gc.dao.GCMetricEsDAO | ||
org.skywalking.apm.collector.agentjvm.worker.heartbeat.dao.InstanceHeartBeatEsDAO |
3 changes: 2 additions & 1 deletion
3
apm-collector/apm-collector-agentjvm/src/main/resources/META-INF/defines/h2_dao.define
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
org.skywalking.apm.collector.agentjvm.worker.cpu.dao.CpuMetricH2DAO | ||
org.skywalking.apm.collector.agentjvm.worker.memory.dao.MemoryMetricH2DAO | ||
org.skywalking.apm.collector.agentjvm.worker.memorypool.dao.MemoryPoolMetricH2DAO | ||
org.skywalking.apm.collector.agentjvm.worker.gc.dao.GCMetricH2DAO | ||
org.skywalking.apm.collector.agentjvm.worker.gc.dao.GCMetricH2DAO | ||
org.skywalking.apm.collector.agentjvm.worker.heartbeat.dao.InstanceHeartBeatH2DAO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
...ollector/agentstream/worker/instance/performance/define/InstPerformanceEsTableDefine.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package org.skywalking.apm.collector.agentstream.worker.instance.performance.define; | ||
|
||
import org.skywalking.apm.collector.storage.elasticsearch.define.ElasticSearchColumnDefine; | ||
import org.skywalking.apm.collector.storage.elasticsearch.define.ElasticSearchTableDefine; | ||
import org.skywalking.apm.collector.storage.table.instance.InstPerformanceTable; | ||
|
||
/** | ||
* @author pengys5 | ||
*/ | ||
public class InstPerformanceEsTableDefine extends ElasticSearchTableDefine { | ||
|
||
public InstPerformanceEsTableDefine() { | ||
super(InstPerformanceTable.TABLE); | ||
} | ||
|
||
@Override public int refreshInterval() { | ||
return 2; | ||
} | ||
|
||
@Override public int numberOfShards() { | ||
return 2; | ||
} | ||
|
||
@Override public int numberOfReplicas() { | ||
return 0; | ||
} | ||
|
||
@Override public void initialize() { | ||
addColumn(new ElasticSearchColumnDefine(InstPerformanceTable.COLUMN_APPLICATION_ID, ElasticSearchColumnDefine.Type.Integer.name())); | ||
addColumn(new ElasticSearchColumnDefine(InstPerformanceTable.COLUMN_INSTANCE_ID, ElasticSearchColumnDefine.Type.Integer.name())); | ||
addColumn(new ElasticSearchColumnDefine(InstPerformanceTable.COLUMN_CALL_TIMES, ElasticSearchColumnDefine.Type.Integer.name())); | ||
addColumn(new ElasticSearchColumnDefine(InstPerformanceTable.COLUMN_COST_TOTAL, ElasticSearchColumnDefine.Type.Long.name())); | ||
addColumn(new ElasticSearchColumnDefine(InstPerformanceTable.COLUMN_TIME_BUCKET, ElasticSearchColumnDefine.Type.Long.name())); | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
...ollector/agentstream/worker/instance/performance/define/InstPerformanceH2TableDefine.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package org.skywalking.apm.collector.agentstream.worker.instance.performance.define; | ||
|
||
import org.skywalking.apm.collector.storage.h2.define.H2ColumnDefine; | ||
import org.skywalking.apm.collector.storage.h2.define.H2TableDefine; | ||
import org.skywalking.apm.collector.storage.table.instance.InstPerformanceTable; | ||
|
||
/** | ||
* @author pengys5 | ||
*/ | ||
public class InstPerformanceH2TableDefine extends H2TableDefine { | ||
|
||
public InstPerformanceH2TableDefine() { | ||
super(InstPerformanceTable.TABLE); | ||
} | ||
|
||
@Override public void initialize() { | ||
addColumn(new H2ColumnDefine(InstPerformanceTable.COLUMN_ID, H2ColumnDefine.Type.Varchar.name())); | ||
addColumn(new H2ColumnDefine(InstPerformanceTable.COLUMN_APPLICATION_ID, H2ColumnDefine.Type.Int.name())); | ||
addColumn(new H2ColumnDefine(InstPerformanceTable.COLUMN_INSTANCE_ID, H2ColumnDefine.Type.Int.name())); | ||
addColumn(new H2ColumnDefine(InstPerformanceTable.COLUMN_CALL_TIMES, H2ColumnDefine.Type.Int.name())); | ||
addColumn(new H2ColumnDefine(InstPerformanceTable.COLUMN_COST_TOTAL, H2ColumnDefine.Type.Bigint.name())); | ||
addColumn(new H2ColumnDefine(InstPerformanceTable.COLUMN_TIME_BUCKET, H2ColumnDefine.Type.Bigint.name())); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.