Counter restarting with deployments restart #784
-
Hi, I have set my grafana dashboard to see some custom metrics of my deployments. The problem is when the deployment restarts, instead of adding up, the value gets restarted. The query: Underlying this metric is a Counter. Do you know what I can do so I got it cumulative across deployment restarts. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello, this is how counters work in Prometheus, and functions such as |
Beta Was this translation helpful? Give feedback.
Hello, this is how counters work in Prometheus, and functions such as
rate
andincrease
in Prometheus are designed to handle counter resets. For example, you could useincrease(watchdog_observer_files_processed_total{app=~"$watchdog"}[1h])
to see how many files were processed in the last hour.