Thanks again for quick response. The issue is that the node on which the Prometheus is running is not in time sync. It is 1hr in past. There is no easy way we can correct the time as it has many dependencies with many products. Here is our setup
We wrote a custom exporter in GoLang that scrapes metrics from other exporters and endpoints, adds timestamp and sends to Thanos via remotewrite.
Say correct time is 10:00AM.
Node time is 09:00 AM.
Prometheus runs at 09:00 AM. Prometheus runs as agent
Now the custom GoLang Exporter gets the metrics from windows exporter, adds timestamp as 10:00 AM and gives these metrics to Prometheus.
Prometheus logs says that metrics are too far in future. I dont know if this log comes from Prometheus or Thanos.
But consider the similar use case with node time in future.
Say correct time is 10:00AM.
Node time is 11:00 AM.
Prometheus runs at 11:00 AM. Prometheus runs as agent
Now the custom GoLang Exporter gets the metrics from windows exporter, adds timestamp as 10:00 AM and gives these metrics to Prometheus.
Prometheus accepts these metrics and sends to Thanos.