How to pull the parameters dynamically from Influx

Stack: Grafana 7.1.0 and Influx 2.0 as data source

Problem: In Grafana I’m creating a custom variable and providing static values but I’m unable to get those values dynamically with the flux Query ,can any one help me with this?4

I need a flux query that supports pulling parameters dynamically.