Hello Brian,
Thanks for your quick reply. Your solution partially satisfied my 
requirement. What if i would like to get the workflows which are succeeded 
in the last one hour. (Not the count, but also the name of the workflow). 
argo_workflows_custom_duration_gauge_task is the custom metrics and will 
give us the status and duration it ran for each workflow. I would like to 
know which workflows got succeeded in the past one hour.

Regards,
Dhanunjaya Mitta
On Wednesday, October 13, 2021 at 10:07:36 AM UTC+2 Brian Candler wrote:

> You said your metrics are counter values.  If you want to know how much a 
> counter has increased over the preceding hour, you can use
>
> increase(argo_workflows_count[1h])
> or:
> argo_worklows_count - argo_workflows_count offset 1h
>
> The first takes account of possible counter resets, but may give a value 
> which is not exactly an integer.  It's a rate extrapolated over the period, 
> so if you only have 10 minutes of data, it will work out the rate of 
> increase over that time and then multiply by 60/T where T is the time 
> difference between the first and last data point (roughly).
>
> The second will give an exact value for how much the counter has changed, 
> but may go negative if the counter resets, and will give no answer if there 
> was no value an hour ago.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/82e35330-c0f1-435e-af4d-a98a52ff418dn%40googlegroups.com.

Reply via email to