1

My HTTP agent on Zabbix recieve data representing count of client's orders:

{
  "orders": [
    {
      "client_id": 1,
      "count": 2
    },
    {
      "client_id": 2,
      "count": 3
    },
    {
      "client_id": 3,
      "count": 1
    }
  ]
}

How to create items and then graph of orders count for each client? I know about JSONPath and catching certain fields from JSON, but I can't understand how to work with key:value data.

Thanx!

Yury
  • 11
  • 2

1 Answers1

0

I suggest creating main iteam which stores hole JSON and creating multiple dependent items to store individual values using correct preprocessing.

Paweł Zimny
  • 195
  • 4
  • 16