Hi all

We have been exploring on all the Prometheus Query functions which can be 
useful to retrieve the number of requests for the last $period from a 
cumulative stats http_srv_req_count.

sum(http_srv_req_count) - sum(http_srv_req_count offset $period) >= 0

Can you confirm if the below function would help in the scenario as 
mentioned above.
idelta(http_srv_req_count[$period]) >= 0

   1. If not can you suggest a PromQL function to satisfy our requirement.
   2. if yes, whats the impact of $period in the idelta function. With our 
   observation, can see that it takes the difference of last two samples 
   everytime and show the result but when does the $period gets applied.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/bc98b495-a64b-4d38-abaf-aa1b897616f7n%40googlegroups.com.

Reply via email to