Graphics don't work when filtering the last 5 minutes

Does anyone have any idea what may be happening?

Will it be influxdb?

Your influx & grafana service is up. Have you seen data in influxdb for that moment.

Just write a query like

where time < now()- minutes at what time data is missing ( convert your missing time in minutes i.e last 2 hours just write now()-120m ) . Analyze the data then you will figure it out.