When dashboard variables are interpolated, it appears variables named as (for example) $index_foo are interpreted as a variable “$index_foo” instead of as variable “$index” with the non-variable suffix “_foo” added. This is a regression versus previous versions of the Grafana plugin. I have not identified exactly where the change occurred; i know this worked correctly in (at least) Helm / v8.
However, foo_$index appears to work as expected.
Attachments
1
Activity
Show:
Scott Theleman last month
Great! Hopefully this solves it
I’ll open an issue to update to point out this syntax.
Dino Yancey last month
Yeah, looks like it does:
I didn’t know you could do that
Scott Theleman last month
This may be as designed as there could be ambiguity between $index and $index_foo being variables.
When dashboard variables are interpolated, it appears variables named as (for example)
$index_foo
are interpreted as a variable “$index_foo” instead of as variable “$index” with the non-variable suffix “_foo” added. This is a regression versus previous versions of the Grafana plugin. I have not identified exactly where the change occurred; i know this worked correctly in (at least) Helm / v8.However,
foo_$index
appears to work as expected.