We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am reading in statusjson data from nagios.
A part of it: nagiosexample.txt
I want to do a partial match on $.data.hostlist.[*].name, so I do
$.data.hostlist[?(@.name=~/bb/)].name
I would expect to get back [aaknes-bb]. What I do get is [-1, -1]. And indeed, if I do
$.data.hostlist[?(@.name=~/bb/)]. I get
{"name":-1,"plugin_output":"OK - x.y.z.z1: rta 726.213ms, (...) {"name":-1,"plugin_output":"OK - x.y.z.z2: rta 710.566ms, (...)
and so on, rather than filtering, I have rewritten the json.
The text was updated successfully, but these errors were encountered:
This may be the same issue as the jsonpath part of #185
Sorry, something went wrong.
hi @sickel , filte rexpressionss are not supported in the plugin anymore, since version 1.3.5, for security reasons (see https://grafana.com/grafana/plugins/marcusolsson-json-datasource/?tab=changelog for more details).
1.3.5
in the https://grafana.com/docs/plugins/marcusolsson-json-datasource/latest/jsonpath/#filters section several possible workarounds are described. i hope this helps.
No branches or pull requests
I am reading in statusjson data from nagios.
A part of it:
nagiosexample.txt
I want to do a partial match on $.data.hostlist.[*].name, so I do
$.data.hostlist[?(@.name=~/bb/)].name
I would expect to get back [aaknes-bb]. What I do get is [-1, -1]. And indeed, if I do
$.data.hostlist[?(@.name=~/bb/)]. I get
{"name":-1,"plugin_output":"OK - x.y.z.z1: rta 726.213ms, (...)
{"name":-1,"plugin_output":"OK - x.y.z.z2: rta 710.566ms, (...)
and so on, rather than filtering, I have rewritten the json.
The text was updated successfully, but these errors were encountered: