In ops, data objects are not available until 24h behind the current timestamp, while we hard code the time range at one hour. Make the availability configurable instead.
Fixesgrafana/loki-private#2001
f.DurationVar(&cfg.TailMaxDuration,prefix+"tail-max-duration",1*time.Hour,"Maximum duration for which the live tailing requests are served.")
f.DurationVar(&cfg.ExtraQueryDelay,prefix+"extra-query-delay",0,"Time to wait before sending more than the minimum successful query requests.")
f.DurationVar(&cfg.QueryIngestersWithin,prefix+"query-ingesters-within",3*time.Hour,"Maximum lookback beyond which queries are not sent to ingester. 0 means all queries are sent to ingester.")
f.DurationVar(&cfg.DataobjStorageLag,prefix+"dataobj-storage-lag",1*time.Hour,"Amount of time until data objects are available.")
f.BoolVar(&cfg.MultiTenantQueriesEnabled,prefix+"multi-tenant-queries-enabled",false,"When true, allow queries to span multiple tenants.")
f.BoolVar(&cfg.PerRequestLimitsEnabled,prefix+"per-request-limits-enabled",false,"When true, querier limits sent via a header are enforced.")
f.BoolVar(&cfg.QueryPartitionIngesters,prefix+"query-partition-ingesters",false,"When true, querier directs ingester queries to the partition-ingesters instead of the normal ingesters.")
f.StringVar(&cfg.DataobjStorageStart,prefix+"dataobj-storage-start","","Initial date when data objects became available. Format YYYY-MM-DD. If not set, assume data objects are always available no matter how far back.")