You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/01/29 02:48:58 UTC
[GitHub] [pulsar] codertmy opened a new issue #14023: Prometheus summaries for rate_in or rate_out are incorrect when using short connections for production or consumption
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**

--
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-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] tjiuming commented on issue #14023: Prometheus summaries for rate_in or rate_out are incorrect when using short connections for production or consumption
Posted by GitBox <gi...@apache.org>.
tjiuming commented on issue #14023:
URL: https://github.com/apache/pulsar/issues/14023#issuecomment-1063835605
The metric calculated by a scheduler, schedule interval default 60s. So if you request /metric endpoint more than once in a same interval, the metric value isn't changed.
--
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-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org