GrafanaJsonDatasource: Cannot use variables in additional JSON data
The README says “it’s possible to enter variables in the additional JSON data” and that they “should not be enclosed in quotes”
But when I try something like this:
{ "additional": "optional json", "testvar": $testvar }
Grafana errors with Unexpected token $ in JSON at position 44. It works fine without variables. Am I doing something wrong ?
Grafana v5.2.2 grafana-json-datasource v0.1.3
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 15 (9 by maintainers)
@cmoroexpedia can you try upgrading ur grafana?
I’ve only discovered that selecting
Alldoesn’t pass all values. I didn’t notice that as I use it in a bit non-standard way so I have never manually selected variable before 😃 I have created an issue for that https://github.com/simPod/grafana-json-datasource/issues/31I’ll try it on my own tomorrow