-
Notifications
You must be signed in to change notification settings - Fork 463
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error "json: invalid use of ,string struct tag, trying to unmarshal into float64" #1325
Comments
Hi! Could you please enable debug log and provide a detailed error from the log? Could you also try to disable data alignment in the query options and confirm that error persists? |
Hello! @alexanderzobnin Here's dbug logs attached ( also attached in initial message). I tried "disable data alignment" in both query-options and data source options - no changes here. |
@Mksmpm is it happening in every request or only in some cases? |
Hello! This happens on every request, but only for a part of the metrics. For the rest of the metrics / graphs everything works well |
Ok, got it, I will try replicate. |
Do you use direct db connection? |
No, I use API |
@Mksmpm I tried to replicate this, but without success. Looks like the only place where the bug might happen is unmarshalling history. But this only can happen if data returned from Zabbix API is wrong, like |
@alexanderzobnin Bom dia
|
@renatoborges78 How did you install it? Try to use grafana-cli:
|
@alexanderzobnin |
@alexanderzobnin error: "json: invalid use of ,string struct tag, trying to unmarshal ".6897" into float64" Log plugin v4.2.4.txt |
@renatoborges78 Thanks! I'll take a look and try to figure it out. |
Ok, it looks really strange, like Zabbix API returns data in wrong format:
What Zabbix version do you use? Can you try the same dashboard with another version of Zabbix? |
I performed the tests with zabbix version 4.0.19 and zabbix 5.0.12. |
Hi! I use 5.2.1 Zabbix version, but what can i do when i cannot change it? its whole other team running it, and everything works well with 4.1.5 plugin version and only after 4.2.0+ half of the panels return "error:"json: invalid use of ,string struct tag, trying to unmarshal ".1958" into float64"" logs from same panel before and after downgrade attached : |
sorry I still couldn't test it in a new version because we are freezing here at the company and my approval environment is having problems with the image, so I'll get back to you with more information here. |
Could you describe your Zabbix installation? What DB do you use? Any non-standard components, like Elasticsearch for the backend? |
Alexander good night |
hello @alexanderzobnin this problem doesn't happen with the new version of Grafana 9.1.x/ Zabbix 6.2.x, this is really an isolated problem with the zabbix version 4.x. |
Looks like it's Zabbix API bug. I'll close it since Zabbix upgrade solves it. |
After updating 4.1.5 to 4.2.0+ zabbix plugin, some of the graphs on the dashboards shows "No data".
In query inspector response, I can see this message in every graph that shows "No data" now :
"json: invalid use of ,string struct tag, trying to unmarshal ".5222" into float64"
But, interestingly, at the same time, the other part of graphs work as good as before
dbug logs:
zabbix_plugin.txt
| 8.1.5 | 5.2.1 | 4.2.4 |
The text was updated successfully, but these errors were encountered: