Fuchange commented on issue #4809:
URL: https://github.com/apache/apisix/issues/4809#issuecomment-900138229


   > 你不需要“解决”它。它应该由 Prometheus 
处理。请阅读https://www.robustperception.io/how-does-a-prometheus-counter-work,它从“一个常见问题是当进程重新启动并且计数器重置为
 0 时会发生什么”开始。
   
   Thanks for your answer. 
   
   They said "What you really want to know is how fast it's counting" . But 
what we need is not how fast but how much . 
   
   Using rate()  to get how much is difficult to get an integer (because " 
rate() also has logic to handle samples not quite covering the entire time 
range you pass to rate() ")
   
   By the way , they said "This makes it important that it not be possible for 
Counters to be decremented , **a Counter that has the potential to be 
decremented is in reality a Gauge**"


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to