etichy / grafana-swis-datasource

DataSource plugin for grafana to access SolarWinds data via SWIS REST API
MIT License
52 stars 11 forks source link

Nested Variables not being interpolated #5

Closed mdollemore closed 3 years ago

mdollemore commented 4 years ago

Trying to use a nested variable. I have defined a NodeId variable; SELECT Caption as text, NodeID as value FROM Orion.Nodes this works as expected.

However when I try to define an InterfaceID variable as below;- SELECT Caption as text, InterfaceID as value FROM Orion.NPM.Interfaces where NodeID = ($NodeId)

$NodeId is not getting interpolated and just being passed as '($NodeId)' in the query rather than the value of $NodeId.

etichy commented 4 years ago

Hmmm let me try that.

etichy commented 3 years ago

Hi, thanks for reporting and sorry for slow response. Issue is fixed by commit