You should never use any scrape interval greater than 2 minutes.  
Prometheus considers data more than 5 minutes old as "stale", unless you've 
tweaked other settings (and it's not recommended).
https://www.robustperception.io/keep-it-simple-scrape_interval-id/

Don't worry about storage.  Prometheus compresses extremely efficiently, so 
even if you scrape the same data 30 times, the delta between them is zero 
and it will take almost no storage space at all.

On Friday, 17 March 2023 at 15:23:50 UTC Bo Liu wrote:

> I set scrape_interval to 1h, if prometheu is pulled from 00.30.00, then 
> data's timestamp is 00.30.00, 01.30.00, 02.30.00........
>
>
> What I am trying to do is use query_range api to query from that day's 
> 00.00.00 to 23.59.59, and step is per hour(because scrape_interval is 1h,I 
> think it's more reasonable)
>
>
> But I get empty result, I think when I run this query, it check data at 
> 00.00.00 but data at 00.30.00, then he misses every data point.
>
>
> I didn't add grafana  because I'm not familiar with it, which make this 
> problem more complex.
>
> Currently I use default TSDB as prometheus database because I didn't 
> decide to use whick database already.
>
>
> So is there anyway to do this in promql or prometheus api?
>
>
> PS: Please don't mind my pool English
>
>
>
>
>
>

-- 
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 prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/daf2e0ed-eab1-41ad-aa70-bd78bf8ae502n%40googlegroups.com.

Reply via email to