How to deal with prometheus old/stale metrics?

  Kiến thức lập trình

I have been following this example: https://medium.com/@letathenasleep/exposing-python-metrics-with-prometheus-c5c837c21e4d. So when i first send request to localhost:5000, the counter works perfect. But when i do send any request, it shows same value. Ideally it should be zero right ? even if we dont have any requests being sent?

I tried looking at counter prometheus doc, looks like i need some clarity how prometheus works.
I was expecting no metric should be shown, if application does not emit.
Ref: How do I deal with old collected metrics in Prometheus?

Theme wordpress giá rẻ Theme wordpress giá rẻ Thiết kế website Kho Theme wordpress Kho Theme WP Theme WP

LEAVE A COMMENT