"No Data" being displayed through script

Hello,

I am using InfluxDB as a datasource, and using telegraf as my time series database, which is working on Grafana.

I have created a python script that displays some metrics in JSON format. The script is able to execute successfully on my local machine. However, when I want to display this data on Grafana, it gives me a “No Data” Panel. The InfluxDB datasource is working. I have also tried messing around with the time intervals, but nothing seems to display.

I am new to Grafana, so any help would be appreciated.