Hello all,
I am stuck and I hope somebody could help me. I have got the following json and I am trying to parse it with json_v2:
{
"records" : {
"123": {
"Max Size" : 209715200,
"Size" : 115065412354048,
},
"456": {
"Max Size" : 5554307072,
"Size" : 24002560,
}
}
}
Is there any way I could receive the following metrics:
measurment1,ZID=123 Max_Size=209715200,Size=115065412354048 TIMESTAMP
measurment1,ZID=456 Max_Size=5554307072,Size=24002560 TIMESTAMP
?
In the documentation is stated “Object: Every key-value in a object is treated as a single metric”, so it seems I have to convert “records” to list, the only viable way I can think of is to use records.@values - but I lose the keys that way and cant figure a way to convert them to tags and link them with the measurements.