'No Data' is coming in Grafana after there is no metrics generated for last few days even though there is data before and time selected is from the beginning

Hi Team,

Following is the scenario :
Day 1 generated some metrics from prometheus and same is showing in grafana
Day 2 generated metrics and same is showing in grafana
Day 3 no metrics generated
Day 4 no metrics generated
Day 5 Grafana is showing no data even the timestamp is selected for last 5 days

Metrics are stored in S3 bucket with Thanos implementation and also for querying