What Grafana version and what operating system are you using?
Grafana OSS v9.0.3 on Linux
What are you trying to achieve?
I’m trying to build a panel in grafana using postgres connector and multiple variable select without having to go through pgplsql if possible
my variable is a list of uuids
I want to run a simple select * ${variable_id}.table_name where the uuid is the schema name.
Using a single variable selected, this works but once I select multiple it obviously breaks
Is there a way to loop over the selected variables, run the query above all in one single panel without using the repeat panel option? trying to do a ‘rollup’ view of sorts all in one panel
(e.g in pseudo code):
for var in ${variables}
select * from var."table_name"
end
all of the schemas have the same table structure so im trying to loop over the multiple selected variables, run the same query and combine all of the data into a single panel
so if I were to manually add queries, it would look something like
select * from variable_uuid1.table_a select * from variable_uuid2.table_a select * from variable_uuid3.table_a
etc