Create high amount of panels at once

hi,
i have very simple graph with only 1 metric being displayed.
the thing is, that i have about 500 metrics that i need to display graph for each of them.
the only thing that being changed is the query, lets say the query is: target:“rrd:Ping:LBx:median” the x is between 1-500.
how can i do it automaticly in order to create new graph panel in the same dashboard( not multiple queries in the same graph)?

You can use the variables functionality. In this case, x is your variable.