This is not a use case for Prometheus. Prometheus is a metrics system, not
an event system.

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

>
> I've looked into it... I want to store the values though, and the
> histogram just keeps a count of how many are faster than a certain
> threshold.
> It also calculates a quantile over the amount of values in these buckets,
> which is just an approximation and not an actual quantile based on the
> values.
> In short, it doesn't seem that's what I need, as I also cannot figure out
> an accurate minimum and a maximum value.
>
>
> Op woensdag 3 juni 2020 20:10:59 UTC+2 schreef Ben Kochie:
>>
>> 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/a4b4bc75-09f9-4302-b435-cf988f092885%40googlegroups.com
> <https://groups.google.com/d/msgid/prometheus-users/a4b4bc75-09f9-4302-b435-cf988f092885%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/CABbyFmoOOQtacGeYAGoox31GsW9Hp7RUeCz5cBuEE-tddKXiGw%40mail.gmail.com.

Reply via email to