codertmy opened a new issue #14023:
URL: https://github.com/apache/pulsar/issues/14023


   **Describe the bug**
   Prometheus summaries for rate_in or rate_out are incorrect when using short 
connections for production or consumption。
   
   **To Reproduce**
   Steps to reproduce the behavior:
   1、Producing message as follow:
   while (true) {
      Producer<String> stringProducer = client.newProducer(Schema.STRING)
           .topic("my-topic")
           .create();
      stringProducer.send("My message");
      stringProducer.close();
   }
   2、View metrics
   # TYPE pulsar_rate_in gauge
   pulsar_rate_in{cluster="pulsar-cluster-iot"} 0 1643423953979
   pulsar_rate_in{cluster="pulsar-cluster-iot",namespace="public/default"} 0.0 
1643423955593
   
pulsar_throughput_in{cluster="pulsar-cluster-iot",namespace="public/default"} 
0.0 1643423955593
   # TYPE pulsar_in_bytes_total gauge
   
pulsar_in_bytes_total{cluster="pulsar-cluster-iot",namespace="public/default"} 
357648079110085 1643423955593
   # TYPE pulsar_in_messages_total gauge
   
pulsar_in_messages_total{cluster="pulsar-cluster-iot",namespace="public/default"}
 2378188398726 1643423955593
   **Screenshots**
   
![image](https://user-images.githubusercontent.com/49866918/151644390-4086d52d-7256-403e-87ca-d580a3587615.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: commits-unsubscr...@pulsar.apache.org

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


Reply via email to