Hi,
I have a url, it return me a json page
I need monitor each values with discovery rule, my items and values must be below
Traffic-item1-hit -> 65498484105
Traffic-item2-hit ->235
....n count
Traffic-item1-traffic->2693298
Traffic-item2-traffic->5
....n count
Traffic-item1-bandwidth->649
Traffic-item2-bandwidth->55
....n count
I create a discovery rule, and i filtered json data with json path ($.data[*]~) in preprocessing section, it return me an array ["item1","item2"]
Now i need use this array in item prototype. i used same http agent configuration with discovery rule, how i can use my array in item prototype? i need set json path value in my protoype $.data["itemN"]["traffic"] , how i can set dynamically itemN from discovery rule array items?
or other way what is your advice?.
Thanks,
I have a url, it return me a json page
Code:
{
"status": true,
"data": {
"item1": {
"hit": 65498484105,
"traffic": 2693298,
"bandwidth": 649,
"timezone": "GMT+3"
},
"item2": {
"hit": 235,
"traffic": 5,
"bandwidth": 55
}
....n count
}
}
I need monitor each values with discovery rule, my items and values must be below
Traffic-item1-hit -> 65498484105
Traffic-item2-hit ->235
....n count
Traffic-item1-traffic->2693298
Traffic-item2-traffic->5
....n count
Traffic-item1-bandwidth->649
Traffic-item2-bandwidth->55
....n count
I create a discovery rule, and i filtered json data with json path ($.data[*]~) in preprocessing section, it return me an array ["item1","item2"]
Now i need use this array in item prototype. i used same http agent configuration with discovery rule, how i can use my array in item prototype? i need set json path value in my protoype $.data["itemN"]["traffic"] , how i can set dynamically itemN from discovery rule array items?
or other way what is your advice?.
Thanks,
Comment