there is a  command-line parameter called *lookback-delta *which controls 
the loopback. read more about it 
here: https://prometheus.io/docs/prometheus/latest/migration/#flags

On Monday, 11 May 2020 12:26:26 UTC+5, Sohaib Omar wrote:
>
> Thanks, Stuart for the reply, is the look back configurable? I need my 
> Prometheus queries result to be in sync with my remote storage.
>
> On Monday, 11 May 2020 12:11:06 UTC+5, Stuart Clark wrote:
>>
>> On 11/05/2020 08:06, Sohaib Omar wrote:
>>
>>
>> For example, even with the *read_recent: true, *when a certain 
>> time-series has stopped being appended in remote_storage, Prometheus(the 
>> one which remote_reads) is still able to return the result at least for 5 
>> to 6 minutes later. The last point for below time-series is ~5 minutes old 
>> in influxDB but it still shows up in Prometheus.
>>
>> This is expected. When you query Prometheus for the current value of a 
>> metric it will actually look back up to five minutes to find it. After this 
>> point the time series is marked as stale. This is because it is pretty 
>> unlikely that a scrape will fall exactly "now", and could have last been 
>> scraped several minutes ago.
>>
>> -- 
>> 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/c4429c7a-71e2-4f1d-aff0-bb39c4c4ac25%40googlegroups.com.

Reply via email to