Hi Brian, Thank you for the clarification What is the lowest scrape time in Prometheus ? Can I set it at 0s or 1s ?
On Fri, Feb 18, 2022 at 1:10 AM Brian Candler <[email protected]> wrote: > Prometheus is a time-series database. It records numeric metrics only, and > it records them at periodic scrape times. "The value of metric M at time > T1 was M1. The value of metric M at time T2 was M2". In other words, it > stores *samples* of *continuous* data. > > If you want to record details of individual *events* - like attributes > belong to a specific batch - then Prometheus is not the right tool for the > job. Look at Loki or Elasticsearch/Opensearch instead. > > On Friday, 18 February 2022 at 03:56:09 UTC [email protected] wrote: > >> Hi Brian >> >> I used the term temperature for giving an example but exact use case is >> model accuracy that is pushed for every batch of data >> >> It should not hang around so we set it back to 0 so users can interpret >> easily per batch >> >> On Thu, Feb 17, 2022 at 16:07 Brian Candler <[email protected]> wrote: >> >>> On Thursday, 17 February 2022 at 22:02:31 UTC [email protected] >>> wrote: >>> >>>> But to push values like pressure or temperature in our use case we need >>>> to push model accuracy - we use gauge but till the next push the value is >>>> still the previous value >>>> >>> >>> That is correct. The value scraped is the last known reading, and that's >>> the right answer. >>> >>> Push gateway is *not* intended for recording timestamped data. It's >>> designed for picking up data that "hangs around", like the status of a >>> batch job which has terminated. It does not turn prometheus from a >>> pull-gathering to a push-gathering data collection service. >>> >>> >>>> In this scenario the only solution is to set it back to 0 ? >>>> >>> >>> Does the measured temperature really drop down to zero degrees >>> (freezing) in between readings? >>> >>> -- >>> >> 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/e682a8cd-a130-4b98-85a1-54138e8ac5c0n%40googlegroups.com >>> <https://groups.google.com/d/msgid/prometheus-users/e682a8cd-a130-4b98-85a1-54138e8ac5c0n%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/60482a7c-71d3-4b35-8013-6a533d701034n%40googlegroups.com > <https://groups.google.com/d/msgid/prometheus-users/60482a7c-71d3-4b35-8013-6a533d701034n%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/CAOBTUyWm%3DEWSab2%2Bwn-MiR%2BX3HB0BY9aeadCqAMskCKgbYGEJQ%40mail.gmail.com.

