wu-sheng commented on issue #2395: Support gRPC metric exporter
URL: 
https://github.com/apache/incubator-skywalking/pull/2395#issuecomment-475886142
 
 
   I do add a new metric in gRPC exporter definition.
   ```proto
   service MetricExportService {
       rpc export (stream ExportMetricValue) returns (ExportResponse) {
       }
   
       rpc subscription (SubscriptionReq) returns (SubscriptionsResp) {
       }
   }
   
   message ExportMetricValue {
       string metricName = 1;
       string entityName = 2;
       string entityId = 3;
       ValueType type = 4;
       int64 timeBucket = 5;
       int64 longValue = 6;
       double doubleValue = 7;
   }
   
   message SubscriptionsResp {
       repeated string metricNames = 1;
   }
   ```
   
   When exporter starts, it will use `#subscription` to get the metric name 
list. If empty, then export all metrics. If you don't want export, you should 
simply remove this module.
   
   Also, since this is a config downstream service, it require the target gRPC 
standby because OAP start up, otherwise, it starts up failure.
   
   Document updated too.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to