Counter restarting with deployments restart #784
Answered
by
csmarchbanks
VictorCallejas
asked this question in
Q&A
|
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! |
Answered by
csmarchbanks
Mar 11, 2022
Replies: 1 comment
|
Hello, this is how counters work in Prometheus, and functions such as |
0 replies
Answer selected by
VictorCallejas
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Hello, this is how counters work in Prometheus, and functions such as
rateandincreasein 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.