Be careful with sum(something_total) – this is only valid if all instances reset their counters (restart) at the same time.
The best way would be
sum(increase(app_callscount{endpoint="/services/exampleService"}[$duration]))
and using the current value. Not sure how to do that in Grafana though, this doesn't seem to be available as a variable. Maybe you can trick Grafana into using exactly one interval for the ministat so that $__interval == the duration you are interested in?
/MR
--
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-use...@googlegroups.com.
To post to this group, send email to promethe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/9d401c47-74a4-4130-83a5-40f510f8e7d3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/e9feef32-e7df-4214-953a-122969bdb40e%40googlegroups.com.To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-users+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to promethe...@googlegroups.com.
To post to this group, send email to promethe...@googlegroups.com.