Hi Brian,

Thanks for the prompt reply :)

Best Regards,
Helio Loureiro

On Mon, 6 Dec 2021 at 13:19, Brian Candler <[email protected]> wrote:

> You are evaluating the PromQL query
> "scrape_duration_seconds{job="prometheus"}@1637919561" at time
> 1638787945.238
>
> That seems perfectly consistent to me.
>
> A simple instant vector query, like "up", evaluates the expression at some
> specific instant in time T (by default, the current time).  The value of
> each time series at time T is the most recent value it had *at or before*
> time T.  But the timestamp of the result is T.  That's because you asked
> for a vector of time series at time T, and the result is the value of these
> timeseries as they were at time T.
>
> Similarly, if you ask for "up@T1" at time T2, then the instant vector
> result will be timestamped T2, because you asked for the value of this
> expression *as it was at time T2*.  The fact that the expression
> internally makes use of the timeseries at or before time T1 doesn't change
> this.
>
> --
> 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/4885fd04-72f1-4d11-888a-90ec77b4fa36n%40googlegroups.com
> <https://groups.google.com/d/msgid/prometheus-users/4885fd04-72f1-4d11-888a-90ec77b4fa36n%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/CAPxLgJ%2BY7N1KA7Mtabq0miaH0OGVLKcvDMORG7fBFUE%3D8d8rtA%40mail.gmail.com.

Reply via email to