Check https://grafana.com/dashboards/617 and use similar dashboard variables/variable queries.
BTW: How to change instance id to text name -> you really need to provide more details, if you expect any response from community.
i want to change instance id values to same name that i can give. like i-07348234243824 to application db.