How to automatic creation panels?

Hi , my friend.
How to obtain data from a data source through variables and create panels automatically.
For example, obtain the instance from the ‘Prometheus’ data source and create pannels one by one. The query statement is up{instance=‘xxxxxxx’}