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


   > You don't need to "solve" it. It should be handled by Prometheus. Please 
read https://www.robustperception.io/how-does-a-prometheus-counter-work, which 
starts from "A common question is what happens when the process restarts and 
the counter is reset to 0".
   
   @spacewander  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