I'm trying to create a variable in Grafana that will pull distinct servers from a BigQuery database. I would like to only pull these servers from within a given time window like one would normally with something like WHERE $__timeFilter(timestamp). Is it possible to use global variables within a query variable? I can't seem to find any documentation around this. For reference, I'm currently using
This query to get a list of all servers:
SELECT DISTINCT server FROM table WHERE timetamp < CURRENT_TIMESTAMP
Whereas I would like to use something like this to get a list of servers within the time window the user selects in Grafana:
SELECT DISTINCT server FROM table WHERE $__timeFilter(timestamp)