-
Problem report
-
Resolution: Cannot Reproduce
-
Trivial
-
None
-
4.2.7
-
Centos 7.5
Good afternoon!
I am unable to perform preprocessing with JSONPath.
My preprocessing JSONPath - $.data.result.value
I want get "value" which in this case is 3
My Json data:
{ "status":"success", "data":{ "resultType":"vector", "result":[ { "metric":{ "__name__":"kafka_brokers", "instance":"10.0.3.18:9308", "job":"kafka_exporter" }, "value":[ 1580296145.761, "3" ] } ] } }
I get an error:
Preprocessing failed for: {"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"kafka_brokers"... 1. Failed: cannot extract value from json by path "$.data.result.metric.instance": no data matches the specified path
For this setting, I followed the official Zabbix documentation.