On 17/03/2023 10:33, 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
The maximum scrape interval is about 2 minutes due to the way staleness
handling works, so anything longer than that will likely result in what
you are seeing.
--
Stuart Clark
--
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/71f0ba3a-efb2-30ef-5f80-609b69c0bb84%40Jahingo.com.