Clone this repository somewhere. And, edit your grafana.ini config file and add this:
[plugin.templating-json]
path = /home/your/clone/dir/grafana-templating-json-datasource
- Add datasource with JSON url, you want to query
- Add templating query in dashboard, set jmespath query
If JSON is like following, and specify query like foo.bar
, result is baz
and qux
.
{
"foo": {
"bar": [
"baz",
"qux"
]
}
}