diff --git a/apm-network/src/main/proto/AggregatedMetricsService.proto b/apm-network/src/main/proto/AggregatedMetricsService.proto new file mode 100644 index 000000000..ed4b9b264 --- /dev/null +++ b/apm-network/src/main/proto/AggregatedMetricsService.proto @@ -0,0 +1,24 @@ +syntax = "proto3"; + +option java_multiple_files = true; +option java_package = "org.skywalking.apm.network.trace.proto"; + +import "Downstream.proto"; + +service AggregatedMetricsService { + rpc collect (AggregatedMetrics) returns (Downstream) { + } +} + +message AggregatedMetrics { + repeated Metric metrics = 1; +} + +// In aggregated metric, every operation metric is aggregated in 1 seconds. +message Metric { + int32 operationNameId = 1 ; + int32 timeWindow = 2; + int32 count = 3; + int32 latency = 4; // ms + repeated int32 topN = 5; +} diff --git a/apm-network/src/main/proto/JVMMetricsService.proto b/apm-network/src/main/proto/JVMMetricsService.proto new file mode 100644 index 000000000..22680b686 --- /dev/null +++ b/apm-network/src/main/proto/JVMMetricsService.proto @@ -0,0 +1,13 @@ +option java_multiple_files = true; +option java_package = "org.skywalking.apm.network.trace.proto"; + +import "Downstream.proto"; + +service JVMMetricsService { + rpc collect (JVMMetrics) returns (Downstream) { + } +} + +message JVMMetrics { + +} diff --git a/apm-network/src/main/proto/RegisterService.proto b/apm-network/src/main/proto/RegisterService.proto new file mode 100644 index 000000000..773f224b8 --- /dev/null +++ b/apm-network/src/main/proto/RegisterService.proto @@ -0,0 +1,50 @@ +syntax = "proto3"; + +option java_multiple_files = true; +option java_package = "org.skywalking.apm.network.trace.proto"; + +//register service for ApplicationCode, this service is called when service starts. +service ApplicationRegisterService { + rpc register (ApplicationMetaInfo) returns (ApplicationRegiseredInfo) { + } +} + +message ApplicationMetaInfo { + string applicationCode = 1; +} + +message ApplicationRegiseredInfo { + int32 applicationId = 2; +} + +//register service for ServiceName, Network address +service DictionaryRegisterService { + rpc register (DictionaryRegisterMetaInfo) returns (DictionaryRegiseredInfo) { + } +} + +message DictionaryRegisterMetaInfo { + repeated DictionaryRegisterElement elements = 1; +} + +message DictionaryRegisterElement { + RegisterElementType type = 1; + string name = 2; +} + +message DictionaryRegiseredInfo { + repeated DictionaryRegiseredElement elements = 1; +} + +message DictionaryRegiseredElement { + RegisterElementType type = 1; + string name = 2; + int32 id = 3; +} + + +enum RegisterElementType { + ServiceName = 0; + NetworkAddress = 1; +} + diff --git a/apm-network/src/main/proto/TraceSegment.proto b/apm-network/src/main/proto/TraceSegmentService.proto similarity index 100% rename from apm-network/src/main/proto/TraceSegment.proto rename to apm-network/src/main/proto/TraceSegmentService.proto