You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2021/11/22 14:15:22 UTC

[GitHub] [skywalking] wu-sheng opened a new issue #6210: Adopt the native metrics format of OpenTelemetry

wu-sheng opened a new issue #6210:
URL: https://github.com/apache/skywalking/issues/6210


   As we discussed today, I open this issue to track the progress about adopting the native(GA recently?) native metrics format from OpenTelemetry collector. We should support to transfer the data to our MetricFamily, and MAL engine could support this consistently.


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] wu-sheng commented on issue #6210: Adopt the native metrics format of OpenTelemetry

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #6210:
URL: https://github.com/apache/skywalking/issues/6210#issuecomment-961581615


   I think as same as OpenTelemetry logging, we could accept supporting their native format, or adding our native meter exporter to there, or both.


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] wu-sheng commented on issue #6210: Adopt the native metrics format of OpenTelemetry

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #6210:
URL: https://github.com/apache/skywalking/issues/6210#issuecomment-975571828


   Reopen this, as OpenTelemetry side work is still in TODO status.


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] liqiangz edited a comment on issue #6210: Adopt the native metrics format of OpenTelemetry

Posted by GitBox <gi...@apache.org>.
liqiangz edited a comment on issue #6210:
URL: https://github.com/apache/skywalking/issues/6210#issuecomment-966001232


   Another solution is to implement format conversion in skywalking like otel-receiver-plugin, so that using the otlp protocol for transmission, there is no need for a metriclist in a stream. But I prefer to implement the previous solution, so that if there is a large batch of data import later, this interface can be reused.


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] liqiangz commented on issue #6210: Adopt the native metrics format of OpenTelemetry

Posted by GitBox <gi...@apache.org>.
liqiangz commented on issue #6210:
URL: https://github.com/apache/skywalking/issues/6210#issuecomment-1004474385


   > Cool! We should update this doc as well, https://skywalking.apache.org/docs/main/latest/en/setup/backend/backend-meter/#meter-collection
   
   Okay, I will update the document in these two days.


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] liqiangz commented on issue #6210: Adopt the native metrics format of OpenTelemetry

Posted by GitBox <gi...@apache.org>.
liqiangz commented on issue #6210:
URL: https://github.com/apache/skywalking/issues/6210#issuecomment-986459111


   @wu-sheng  I have submitted a pr in opentelemetry https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/6528. Gauge, Sum, Histogram have been supported. However, the Summary type is not yet supported for two reasons:  1. Protocol does not support summary  2. Mal does not support summary


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] liqiangz commented on issue #6210: Adopt the native metrics format of OpenTelemetry

Posted by GitBox <gi...@apache.org>.
liqiangz commented on issue #6210:
URL: https://github.com/apache/skywalking/issues/6210#issuecomment-961579922


   > @liqiangz Could you take a look about this?
   @wu-sheng I will try to finish it~
   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] wu-sheng commented on issue #6210: Adopt the native metrics format of OpenTelemetry

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #6210:
URL: https://github.com/apache/skywalking/issues/6210#issuecomment-965964361


   @liqiangz Thanks for the feedback, but I am a little confused about what you are asking for.
   
   This service is already streaming, which means you could deliver the metrics in a bulk mode, rather than once per time.
   
   https://github.com/apache/skywalking-data-collect-protocol/blob/master/language-agent/Meter.proto#L31


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] liqiangz commented on issue #6210: Adopt the native metrics format of OpenTelemetry

Posted by GitBox <gi...@apache.org>.
liqiangz commented on issue #6210:
URL: https://github.com/apache/skywalking/issues/6210#issuecomment-966011704


   > OK, so you means entity reused, right?
   > 
   > The metricList includes metrics from one entity?
   
   @wu-sheng   Yes, and the new rpc interface `rpc collect (stream MeterDataList) returns (Commands) {
         }` can also be reused.
   
   Do you think we can add a new grpc service like this?  If can,  I will use this  to complete this issue.
   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] wu-sheng commented on issue #6210: Adopt the native metrics format of OpenTelemetry

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #6210:
URL: https://github.com/apache/skywalking/issues/6210#issuecomment-986485218


   The codes of Prometheus fetcher was added first, but little used because most use OpenTelemetry collector or Satellite to do that. So, you could add `quantile` tag in the exporter directly. MAL doesn't have to be aware of this tag in the kernel level, the people writing MAL script knowing this should be enough. You could put this kind of `added-tags` logics in the document.


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] liqiangz commented on issue #6210: Adopt the native metrics format of OpenTelemetry

Posted by GitBox <gi...@apache.org>.
liqiangz commented on issue #6210:
URL: https://github.com/apache/skywalking/issues/6210#issuecomment-961579922


   > @liqiangz Could you take a look about this?
   @wu-sheng I will try to finish it~
   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] wu-sheng commented on issue #6210: Adopt the native metrics format of OpenTelemetry

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #6210:
URL: https://github.com/apache/skywalking/issues/6210#issuecomment-973651042


   And I noticed, implementation of https://github.com/apache/skywalking-data-collect-protocol/pull/56 has not been updated in OAP side. Is that coming soon?


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] wu-sheng commented on issue #6210: Adopt the native metrics format of OpenTelemetry

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #6210:
URL: https://github.com/apache/skywalking/issues/6210#issuecomment-986467675


   Could you be more clear about what you can't do in SampleFamily?


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] liqiangz edited a comment on issue #6210: Adopt the native metrics format of OpenTelemetry

Posted by GitBox <gi...@apache.org>.
liqiangz edited a comment on issue #6210:
URL: https://github.com/apache/skywalking/issues/6210#issuecomment-986474007


   > Could you be more clear about what you can't do in SampleFamily?
   
   @wu-sheng We converted the Histogram data into the data of the `le` label. There is a method histogram in mal to process the data of this kind of `le` label. There is no similar processing method for the data of the `quantile` label.
   
   ![image](https://user-images.githubusercontent.com/16935891/144797063-2fbad00a-139b-436a-9d21-0a3790c5f056.png)
   
   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] wu-sheng commented on issue #6210: Adopt the native metrics format of OpenTelemetry

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #6210:
URL: https://github.com/apache/skywalking/issues/6210#issuecomment-961543549






-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] liqiangz commented on issue #6210: Adopt the native metrics format of OpenTelemetry

Posted by GitBox <gi...@apache.org>.
liqiangz commented on issue #6210:
URL: https://github.com/apache/skywalking/issues/6210#issuecomment-986501792


   > The codes of Prometheus fetcher was added first, but little used because most use OpenTelemetry collector or Satellite to do that. So, you could add `quantile` tag in the exporter directly. MAL doesn't have to be aware of this tag in the kernel level, the people writing MAL script knowing this should be enough. You could put this kind of `added-tags` logics in the document.
   
   Ok, I will put the label directly.


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] wu-sheng commented on issue #6210: Adopt the native metrics format of OpenTelemetry

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #6210:
URL: https://github.com/apache/skywalking/issues/6210#issuecomment-986459914


   Thanks. And yes, we don't support summary directly. 
   We supported this in OAP Prometheus fetcher by using 2 guage metrics instead of a new type.


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] wu-sheng edited a comment on issue #6210: Adopt the native metrics format of OpenTelemetry

Posted by GitBox <gi...@apache.org>.
wu-sheng edited a comment on issue #6210:
URL: https://github.com/apache/skywalking/issues/6210#issuecomment-1004473497


   Cool! We should update this doc as well, https://skywalking.apache.org/docs/main/latest/en/setup/backend/backend-meter/#meter-collection


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] wu-sheng commented on issue #6210: Adopt the native metrics format of OpenTelemetry

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #6210:
URL: https://github.com/apache/skywalking/issues/6210#issuecomment-1004473497


   Cool! We should update this doc as well, https://skywalking.apache.org/docs/main/latest/en/setup/backend/backend-meter/


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] liqiangz commented on issue #6210: Adopt the native metrics format of OpenTelemetry

Posted by GitBox <gi...@apache.org>.
liqiangz commented on issue #6210:
URL: https://github.com/apache/skywalking/issues/6210#issuecomment-965959965


   Now the interface provided by MeterReportService is One period data through one stream. There is no problem with a small amount of data as the agent. However, when a large amount of data is transmitted from the server to the server, the overhead of frequently creating streams is very large.
   
   Maybe we can provide a encapsulated request like opencensus, so that we can use keep-alive-stream to improve performance.
   
   The follow is the benchmark in https://github.com/liqiangz/opentelemetry-collector-contrib/blob/log-3/exporter/skywalkingexporter/skywalking_benchmark_test.go
   
   ```
   keep alive stream
   The number of goroutines:1,  The number of streams:1,  Sent: 10000 items (196/millisecond),  Receive: 10000 items (192/millisecond)
   The number of goroutines:2,  The number of streams:2,  Sent: 10000 items (294/millisecond),  Receive: 10000 items (285/millisecond)
   The number of goroutines:4,  The number of streams:4,  Sent: 10000 items (357/millisecond),  Receive: 10000 items (357/millisecond)
   The number of goroutines:5,  The number of streams:5,  Sent: 10000 items (434/millisecond),  Receive: 10000 items (434/millisecond)
   The number of goroutines:10,  The number of streams:10,  Sent: 10000 items (476/millisecond),  Receive: 10000 items (416/millisecond)
   
   One stream One Request
   The number of goroutines:1,  Sent: 10000 items (2/millisecond),  Receive: 10000 items (2/millisecond)
   The number of goroutines:2,  Sent: 10000 items (5/millisecond),  Receive: 10000 items (5/millisecond)
   The number of goroutines:4,  Sent: 10000 items (15/millisecond),  Receive: 10000 items (15/millisecond)
   The number of goroutines:5,  Sent: 10000 items (18/millisecond),  Receive: 10000 items (18/millisecond)
   The number of goroutines:10,  Sent: 10000 items (40/millisecond),  Receive: 10000 items (40/millisecond)
   ```
   
   and opencensus proto
   
   ```
   // Service that can be used to push metrics between one Application
   // instrumented with OpenCensus and an agent, or between an agent and a
   // central collector.
   service MetricsService {
     // For performance reasons, it is recommended to keep this RPC
     // alive for the entire life of the application.
     rpc Export(stream ExportMetricsServiceRequest) returns (stream ExportMetricsServiceResponse) {}
   }
   
   message ExportMetricsServiceRequest {
     // This is required only in the first message on the stream or if the
     // previous sent ExportMetricsServiceRequest message has a different Node (e.g.
     // when the same RPC is used to send Metrics from multiple Applications).
     opencensus.proto.agent.common.v1.Node node = 1;
   
     // A list of metrics that belong to the last received Node.
     repeated opencensus.proto.metrics.v1.Metric metrics = 2;
   
     // The resource for the metrics in this message that do not have an explicit
     // resource set.
     // If unset, the most recently set resource in the RPC stream applies. It is
     // valid to never be set within a stream, e.g. when no resource info is known
     // at all or when all sent metrics have an explicit resource set.
     opencensus.proto.resource.v1.Resource resource = 3;
   }
   
   message ExportMetricsServiceResponse {
   }
   ```
   
   @wu-sheng @kezhenxu94 @mrproliu Could you please give some suggestions about this?


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] wu-sheng commented on issue #6210: Adopt the native metrics format of OpenTelemetry

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #6210:
URL: https://github.com/apache/skywalking/issues/6210#issuecomment-973648585


   @liqiangz What is your progress? 
   
   There is another update about OTEL's native metrics format, https://github.com/open-telemetry/opentelemetry-specification/pull/2104. It seems finally being stable.


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] wu-sheng commented on issue #6210: Adopt the native metrics format of OpenTelemetry

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #6210:
URL: https://github.com/apache/skywalking/issues/6210#issuecomment-986502912


   > > The codes of Prometheus fetcher was added first, but little used because most use OpenTelemetry collector or Satellite to do that. So, you could add `quantile` tag in the exporter directly. MAL doesn't have to be aware of this tag in the kernel level, the people writing MAL script knowing this should be enough. You could put this kind of `added-tags` logics in the document.
   > 
   > Ok, I will put the label directly.
   
   Thanks. Later(after that gets merged), we could discuss where we should describe these labels in the documents. I think you have seen the v9 is coming, so, we have enough time about this new input.


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] liqiangz edited a comment on issue #6210: Adopt the native metrics format of OpenTelemetry

Posted by GitBox <gi...@apache.org>.
liqiangz edited a comment on issue #6210:
URL: https://github.com/apache/skywalking/issues/6210#issuecomment-961579922


   > @liqiangz Could you take a look about this?
   
   @wu-sheng I will try to finish it~
   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] wu-sheng commented on issue #6210: Adopt the native metrics format of OpenTelemetry

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #6210:
URL: https://github.com/apache/skywalking/issues/6210#issuecomment-961543549


   @liqiangz Could you take a look about this?


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] liqiangz edited a comment on issue #6210: Adopt the native metrics format of OpenTelemetry

Posted by GitBox <gi...@apache.org>.
liqiangz edited a comment on issue #6210:
URL: https://github.com/apache/skywalking/issues/6210#issuecomment-961579922


   > @liqiangz Could you take a look about this?
   
   @wu-sheng I will try to finish it~
   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] wu-sheng commented on issue #6210: Adopt the native metrics format of OpenTelemetry

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #6210:
URL: https://github.com/apache/skywalking/issues/6210#issuecomment-961543549






-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] liqiangz commented on issue #6210: Adopt the native metrics format of OpenTelemetry

Posted by GitBox <gi...@apache.org>.
liqiangz commented on issue #6210:
URL: https://github.com/apache/skywalking/issues/6210#issuecomment-961579922


   > @liqiangz Could you take a look about this?
   @wu-sheng I will try to finish it~
   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] liqiangz commented on issue #6210: Adopt the native metrics format of OpenTelemetry

Posted by GitBox <gi...@apache.org>.
liqiangz commented on issue #6210:
URL: https://github.com/apache/skywalking/issues/6210#issuecomment-986466270


   > Thanks. And yes, we don't support summary directly. We supported this in OAP Prometheus fetcher by using 2 guage metrics instead of a new type.
   
   @wu-sheng 
   I saw the conversion of the Summary type to the `quantile` tag data in the `PrometheusMetricConverter`, but at present I have not found a way to deal with this kind of data in the SampleFamily. The other two guage metrics should be count and sum.
   
   ![image](https://user-images.githubusercontent.com/16935891/144795029-25632c4a-b7df-498b-aea8-fd9254443a91.png)
   
   ![image](https://user-images.githubusercontent.com/16935891/144795466-5381cecd-ad91-4b98-b947-2827e769b903.png)
   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] liqiangz commented on issue #6210: Adopt the native metrics format of OpenTelemetry

Posted by GitBox <gi...@apache.org>.
liqiangz commented on issue #6210:
URL: https://github.com/apache/skywalking/issues/6210#issuecomment-986474007


   > Could you be more clear about what you can't do in SampleFamily?
   
   @wu-sheng We converted the Histogram data into the data of the `le` label. There is a method histogram in mal to process the data of this kind of `le` label. There is no similar processing method for the data of the `quantile` tag.
   
   ![image](https://user-images.githubusercontent.com/16935891/144797063-2fbad00a-139b-436a-9d21-0a3790c5f056.png)
   
   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] liqiangz commented on issue #6210: Adopt the native metrics format of OpenTelemetry

Posted by GitBox <gi...@apache.org>.
liqiangz commented on issue #6210:
URL: https://github.com/apache/skywalking/issues/6210#issuecomment-966001232


   Another solution is to implement format conversion in skywalking like otel-receiver-plugin, so that using the otlp protocol for transmission, there is no need for a metriclist in a stream.


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] wu-sheng commented on issue #6210: Adopt the native metrics format of OpenTelemetry

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #6210:
URL: https://github.com/apache/skywalking/issues/6210#issuecomment-966004864


   OK, so you means entity reused, right?
   
   The metricList includes metrics from one entity?


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] wu-sheng commented on issue #6210: Adopt the native metrics format of OpenTelemetry

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #6210:
URL: https://github.com/apache/skywalking/issues/6210#issuecomment-966012378


   Yes, I think it is reasonable to add. We need to review protocol first.


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] liqiangz commented on issue #6210: Adopt the native metrics format of OpenTelemetry

Posted by GitBox <gi...@apache.org>.
liqiangz commented on issue #6210:
URL: https://github.com/apache/skywalking/issues/6210#issuecomment-965998972


   > @liqiangz Thanks for the feedback, but I am a little confused about what you are asking for.
   > 
   > This service is already streaming, which means you could deliver the metrics in a bulk mode, rather than once per time.
   > 
   > https://github.com/apache/skywalking-data-collect-protocol/blob/master/language-agent/Meter.proto#L31
   
   @wu-sheng A ResourceMetrics in the OTLP protocol contains a collection of metrics from a Resource. This is a suitable unit for converting metricList to meter system processing. Now skywalking otel-receiver-plugin also does the same. But now the meter service is a metricList in a stream.
   ```Java
       @Override
       public StreamObserver<MeterData> collect(StreamObserver<Commands> responseObserver) {
           final MeterProcessor processor = processService.createProcessor();
           return new StreamObserver<MeterData>() {
               @Override
               public void onNext(MeterData meterData) {
                   try (HistogramMetrics.Timer ignored = histogram.createTimer()) {
                       processor.read(meterData);
                   } catch (Exception e) {
                       errorCounter.inc();
                       log.error(e.getMessage(), e);
                   }
               }
   
               @Override
               public void onError(Throwable throwable) {
                   processor.process();
                   log.error(throwable.getMessage(), throwable);
                   responseObserver.onCompleted();
               }
   
               @Override
               public void onCompleted() {
                   processor.process();
                   responseObserver.onNext(Commands.newBuilder().build());
                   responseObserver.onCompleted();
               }
           };
       }
   ```
   
   
   
   
    If we want to transmit another metricList, we must open another stream. My opinion is to add a service like
   ```
    rpc collect (stream MeterDataList) returns (Commands) {
        },
   ```
    so we can use one stream to transmit multiple MeterDataList.


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] liqiangz commented on issue #6210: Adopt the native metrics format of OpenTelemetry

Posted by GitBox <gi...@apache.org>.
liqiangz commented on issue #6210:
URL: https://github.com/apache/skywalking/issues/6210#issuecomment-994970544


   > @liqiangz Any update about this at OpenTelemetry collector side?
   
   It’s still under review. I guess it should be possible to be merged within a week.


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] wu-sheng closed issue #6210: Support SkyWalking meter format in OpenTelemetry collector

Posted by GitBox <gi...@apache.org>.
wu-sheng closed issue #6210:
URL: https://github.com/apache/skywalking/issues/6210


   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] wu-sheng commented on issue #6210: Adopt the native metrics format of OpenTelemetry

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #6210:
URL: https://github.com/apache/skywalking/issues/6210#issuecomment-1004474394


   Rename `Meter collection` to `Report Meter Telemetry Data`. One is today's manual APIs, another is OpenTelemetry Exporter.
   
   Also, this doc should be updated, https://skywalking.apache.org/docs/main/latest/en/setup/backend/opentelemetry-receiver/#opentelemetry-receiver. All existing parts belong to OpenCensus exporter, we should guide users to meter doc page if they want to use SkyWalking Exporter.


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] wu-sheng closed issue #6210: Adopt the native metrics format of OpenTelemetry

Posted by GitBox <gi...@apache.org>.
wu-sheng closed issue #6210:
URL: https://github.com/apache/skywalking/issues/6210


   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] wu-sheng commented on issue #6210: Adopt the native metrics format of OpenTelemetry

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #6210:
URL: https://github.com/apache/skywalking/issues/6210#issuecomment-994259786


   @liqiangz Any update about this at OpenTelemetry collector side?


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] liqiangz edited a comment on issue #6210: Adopt the native metrics format of OpenTelemetry

Posted by GitBox <gi...@apache.org>.
liqiangz edited a comment on issue #6210:
URL: https://github.com/apache/skywalking/issues/6210#issuecomment-1004472139


   @wu-sheng the pr has been merged. https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/6528


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] liqiangz commented on issue #6210: Adopt the native metrics format of OpenTelemetry

Posted by GitBox <gi...@apache.org>.
liqiangz commented on issue #6210:
URL: https://github.com/apache/skywalking/issues/6210#issuecomment-1004472139


   @wu-sheng the pr has been merged.


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] liqiangz edited a comment on issue #6210: Adopt the native metrics format of OpenTelemetry

Posted by GitBox <gi...@apache.org>.
liqiangz edited a comment on issue #6210:
URL: https://github.com/apache/skywalking/issues/6210#issuecomment-961579922


   > @liqiangz Could you take a look about this?
   
   @wu-sheng I will try to finish it~
   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] liqiangz commented on issue #6210: Adopt the native metrics format of OpenTelemetry

Posted by GitBox <gi...@apache.org>.
liqiangz commented on issue #6210:
URL: https://github.com/apache/skywalking/issues/6210#issuecomment-973801586


   > @liqiangz What is your progress?
   > 
   > There is another update about OTEL's native metrics format, [open-telemetry/opentelemetry-specification#2104](https://github.com/open-telemetry/opentelemetry-specification/pull/2104). It seems finally being stable.
   
   I should be able to finish it in this week. 


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] liqiangz edited a comment on issue #6210: Adopt the native metrics format of OpenTelemetry

Posted by GitBox <gi...@apache.org>.
liqiangz edited a comment on issue #6210:
URL: https://github.com/apache/skywalking/issues/6210#issuecomment-986474007


   > Could you be more clear about what you can't do in SampleFamily?
   
   @wu-sheng We converted the Histogram data into the data of the `le` label. There is a method histogram in mal to process the data of this kind of `le` label. There is no similar processing method for the data of the `quantile` label.
   
   ![image](https://user-images.githubusercontent.com/16935891/144797063-2fbad00a-139b-436a-9d21-0a3790c5f056.png)
   
   ![image](https://user-images.githubusercontent.com/16935891/144797354-1e837413-78a3-48e0-9828-0d1320b37309.png)
   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org