You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2021/11/13 11:40:32 UTC

[skywalking-data-collect-protocol] branch master updated: Add MeterReportService collectBatch method. (#56)

This is an automated email from the ASF dual-hosted git repository.

wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking-data-collect-protocol.git


The following commit(s) were added to refs/heads/master by this push:
     new fbbe955  Add MeterReportService collectBatch method. (#56)
fbbe955 is described below

commit fbbe955545fd2c942ca59cd05720a084d010bb8a
Author: liqiangz <li...@gmail.com>
AuthorDate: Sat Nov 13 19:40:29 2021 +0800

    Add MeterReportService collectBatch method. (#56)
---
 language-agent/Meter.proto | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/language-agent/Meter.proto b/language-agent/Meter.proto
index 2f18bf1..b74580e 100644
--- a/language-agent/Meter.proto
+++ b/language-agent/Meter.proto
@@ -28,8 +28,15 @@ import "common/Common.proto";
 
 service MeterReportService {
     // Meter data is reported in a certain period. The agent/SDK should report all collected metrics in this period through one stream.
+    // The whole stream is an input data set, client should onComplete the stream per report period.
     rpc collect (stream MeterData) returns (Commands) {
     }
+
+    // Reporting meter data in bulk mode as MeterDataCollection.
+    // By using this, each one in the stream would be treated as a complete input for MAL engine,
+    // comparing to `collect (stream MeterData)`, which is using one stream as an input data set.
+    rpc collectBatch (stream MeterDataCollection) returns (Commands) {
+    }
 }
 
 // Label of the meter