Hi,
There's no absolute maximum to this flag, but the longer you set it, the longer "stale" (no longer scraped series) will be selected by instant vector selectors, and thus still appear in tables, or show up as flat lines in graphs, or end up as a potential double-count in aggregations, etc.
However, after reading your issue, I don't think that setting the lookback delta is what you are really looking for. If I understand you correctly, you are trying to accumulate history in your script, and then send a whole accumulated time range of data into Prometheus in a single scrape? Prometheus does not support this - any scraped endpoint must always only expose a single sample per time series, usually at the current time. Endpoints don't expose any history, only the current value, and the history is then built by Prometheus over multiple scrapes of that current value.
In effect, there is no way to buffer up history externally first and then ingest it into Prometheus. In the Prometheus model, it's always the Prometheus server that builds up the history by itself, scrape by scrape. That does mean that it's designed for use cases where occasional gaps in collected data have to be ok. If that is not the case for you, then a different metrics backend than Prometheus may be more suitable.
Regards,
Julius