On Tue, 9 Jun 2020 at 16:15, 林浩 <[email protected]> wrote:

> when I use range query api to get data point, for example I using step 30s
>
> API return me data like these
>
>  "values": [
>                     [
>                         1591607520,
>                         "2270"
>                     ],
>                     [
>                         1591607550,
>                         "2270"
>                     ],
>                     [
>                         1591607580,
>                         "2270"
>                     ],
>
> for the UNIX timestamp, is that really reflex to scrap time?
> since I see some scrape setting
>
> global:
>   scrape_interval: 2m
>   scrape_timeout: 2m
>   evaluation_interval: 1m
>
>
> because Prometheus using pull to get metric,  so is there any way I can
> get precise scape UNIX timestamp from API ?
>

You can use the timestamp() function, or use a query with a range vector to
get the raw samples.

-- 
Brian Brazil
www.robustperception.io

-- 
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/CAHJKeLqP2DffVkUqhM0trP8LZ4PQY_01f9UbbSvbPEJFwnfBkg%40mail.gmail.com.

Reply via email to