You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by li...@apache.org on 2022/05/26 08:50:53 UTC

[rocketmq-apis] branch v2 updated: Add metric endpoints (#38)

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

lizhanhui pushed a commit to branch v2
in repository https://gitbox.apache.org/repos/asf/rocketmq-apis.git


The following commit(s) were added to refs/heads/v2 by this push:
     new 40c5608  Add metric endpoints (#38)
40c5608 is described below

commit 40c56081e3d5819fd9dd00cc87d3a97ebbb6b789
Author: Aaron Ai <ya...@alibaba-inc.com>
AuthorDate: Thu May 26 16:50:50 2022 +0800

    Add metric endpoints (#38)
---
 apache/rocketmq/v2/service.proto | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/apache/rocketmq/v2/service.proto b/apache/rocketmq/v2/service.proto
index 35cf3a1..63fcb5d 100644
--- a/apache/rocketmq/v2/service.proto
+++ b/apache/rocketmq/v2/service.proto
@@ -234,6 +234,13 @@ message Subscription {
   optional google.protobuf.Duration long_polling_timeout = 5;
 }
 
+message Metric {
+  // Indicates that if client should export local metrics to server.
+  bool on = 1;
+  // The endpoint that client metrics should be exported to, which is required if the switch is on.
+  optional Endpoints metric_endpoints = 2;
+}
+
 message Settings {
   // Configurations for all clients.
   optional ClientType client_type = 1;
@@ -263,6 +270,8 @@ message Settings {
 
   // User agent details
   UA user_agent = 7;
+
+  Metric metric = 8;
 }
 
 message TelemetryCommand {