Opensearch metricbeat ec2 dashboard not showing data for last 5 minute

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
opensearch 2.9.0

Describe the issue:

Opensearch metricbeat ec2 dashboard not showing data for last 5 minute for cpu memory network etc. But when we edit the cpu gauge visualisation, data is showing up.

Note that this issue is only for last 5 minute data. when changing to 15 minutes, data is showing up.

So what is the reason for this issue and how to solve this?

Attaching the screenshots for reference

Configuration:

Relevant Logs or Screenshots:
data not showing for the last 5 minutes

Any update on this??

@Eugene7