Is there a way of adding panels with scripts?

Hi,
I am new to Grafana.

I installed Prometheus and Grafana dockers.
Prometheus scraped metrics from my application docker and Grafana displayed metrics from Prometheus.

While adding the metrics from my application in panels in Grafana via web-interface is convenient, it is not convenient when I have many metrics.
So, is there a way of adding panels with scripts (e.g., json)?

Thanks,