ItemID query value type [json: invalid use of ,string struct tag, trying to unmarshal]

Hello Alexander and the community!

Is there any way to change this behavior or is this controlled in the code? Any help would be much appriciated.

Here’s the error I get. I had this problem in both 4.1.5 and 4.2.10.

Here’s my actual data in zabbix:
(https://user-images.githubusercontent.com/49399656/209290312-cdadba28-d61f-40dd-8403-41fbd8256671.png)

Here’s the actual api response from Postman:
https://user-images.githubusercontent.com/49399656/209290663-100ce19d-8e7a-45f1-b0dc-9d59eafe885c.png)

  • What Grafana version and what operating system are you using?
    We’re using 9.0.3 Grafana in a local docker environment with 4.2.10 Zabbix Plugin.

  • What are you trying to achieve?
    I’ve been struggling to use web.page.get items in a dashboard in grafana. My problem is that my item type is string but the pluging tries to convert it to float I think.

  • How are you trying to achieve it?
    I’m using ItemID query type with no

  • What happened?
    I couldn’t get any data in table or any other panel type.

  • What did you expect to happen?
    I expected it to look like in zabbix dashboard’s plain text type.

  • Can you copy/paste the configuration(s) that you are having problems with?
    They are visible in the screenshots but we are using only the API, no direct DB connections or anything else.

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
    In UI, I have the log: “json: invalid use of ,string struct tag, trying to unmarshal…”

  • Did you follow any online instructions? If so, what is the URL?
    No, I did not.

1 Like