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/10/10 15:15:42 UTC

[GitHub] [skywalking] dmsolr opened a new issue #7892: [Bug] [Satellite] Missing histogram type metrics

dmsolr opened a new issue #7892:
URL: https://github.com/apache/skywalking/issues/7892


   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/skywalking/issues?q=is%3Aissue) and found no similar issues.
   
   
   ### Apache SkyWalking Component
   
   Satellite (apache/skywalking-satellite)
   
   ### What happened
   
   Satellite Prometheus Fetcher module sends meter data to OAP, and then we cannot see any histogram type metrics. (I am sure I have some histogram type metrics in target service).
   
   I logged the meter data in `MeterServiceHandler#collect()` like this:
   ```java
   public StreamObserver<MeterData> collect(StreamObserver<Commands> responseObserver) {
       final MeterProcessor processor = processService.createProcessor();
       return new StreamObserver<MeterData>() {
           @SneakyThrows
           @Override
           public void onNext(MeterData meterData) {
               System.out.println(ProtoBufJsonUtils.toJSON(meterData));
   
               try (HistogramMetrics.Timer ignored = histogram.createTimer()) {
                   processor.read(meterData);
               } catch (Exception e) {
                   errorCounter.inc();
                   log.error(e.getMessage(), e);
               }
           }
     ...
   ```
   
   ### What you expected to happen
   
   Can found histogram type metrics
   
   ### How to reproduce
   
   deploy a service and expose metrics by http server.
   deploy oap.
   deploy satellite and configure scrape job and client.
    
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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 #7892: [Bug] [Satellite] Missing histogram type metrics

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


   @gxthrj Please take a look.


-- 
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 #7892: [Bug] [Satellite] Missing histogram type metrics

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


   


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