You're probably looking for the histogram data type. It allows you to
calculate quantiles over time without having to collect every sample.

On Wed, Jun 3, 2020, 20:01 b0nes <[email protected]> wrote:

> Hello,
>
> I was wondering if the following is possible:
>
>    - Have a Python or Bash script check duration of a certain API call
>    5-10 times per second
>    - Scrape these stats once per second
>    - Calculate min, avg, 0.5, 0.9, 0.99 quantiles, max and graph them in
>    Grafana.
>
> I spent many hours today trying to figure this out, and along the way I
> used the pushgateway and statsd exporter.
> Pushgateway seems to override the last value until it gets scraped, which
> isn't what I want - I want all values, not just the latest one.
> statsd has a summary option, but doesn't provide a min and max value.
>
> Anyone know how to do what I want?
>
> --
> 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/2366deaa-7db7-4ee6-a73e-bb4d30c5d6ff%40googlegroups.com
> <https://groups.google.com/d/msgid/prometheus-users/2366deaa-7db7-4ee6-a73e-bb4d30c5d6ff%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CABbyFmqrL4-fZpbpjHq9npai6V3qjHTiqMLu%3Db5WyiUxGpTczw%40mail.gmail.com.

Reply via email to