Hi team!
Via API i collect JSON:
in https://jsonpath.com/ this string works correct
$[?(@.metric.name == 'manager',@.metric.endpoint== 'ep1-2x')].value
in zabbix preprocessing on LLD item prototype $[?(@.metric.name == '{#MANAGER}',@.metric.endpoint== '{#ENDPOINT}')].value
does not working
How can i create items with {#MANAGER}_{#ENDPOINT} in name and key, and get value to this item from $[?(@.metric.name == '{#MANAGER}',@.metric.endpoint== '{#ENDPOINT}')].value?
Via API i collect JSON:
Code:
[
[
{
"metric": {
"name": "manager",
"endpoint": "ep1-2x"
},
"value": [
"1"
]
},
{
"metric": {
"name": "consult",
"endpoint": "ep1-2x"
},
"value": [
"1"
]
}
]
]
$[?(@.metric.name == 'manager',@.metric.endpoint== 'ep1-2x')].value
in zabbix preprocessing on LLD item prototype $[?(@.metric.name == '{#MANAGER}',@.metric.endpoint== '{#ENDPOINT}')].value
does not working
How can i create items with {#MANAGER}_{#ENDPOINT} in name and key, and get value to this item from $[?(@.metric.name == '{#MANAGER}',@.metric.endpoint== '{#ENDPOINT}')].value?
)
Comment