How to reflect the query name on Panel field

ok just installed a Prometheus locally and feeding it some sql data. let’s see what we can come up with. hopefully someone else will be able to chime in.