-
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
json: cannot unmarshal number 1633004437.459 into Go struct field TimeSeriesData.series.TS of type int64 #1320
Comments
I came across this same problem I had to downgrade the version to solve it, I went back to Grafana 7.5.10 and plugin 4.1.5. |
Just wanted to thank you for sharing the solution. Was having the exact same issue and after downgrading both grafana and the zabbix plugin to the versions you specified, everything worked like a charm! |
I am experiencing the same issue, but cant roll back at least not anytime soon.. Hopefully a fix will come out soon to resolve. Grafana: 8.1.6 |
I am experiencing the same issue. json: cannot unmarshal number 1627048976.281 into Go struct field TimeSeriesData.series.TS of type int64 |
Same issue as well: |
I think it happens with direct DB connection: when disabling that feature, I can select a random time range with no error. It may be due to mysql.ts:6, where a division of a clock value (in seconds) results in a rounding error and a float value for a timestamp, which can't be cast as an int64 by whatever comes next. If I modify the corresponding code in production (plugins/alexanderzobnin-zabbix-app/datasource-zabbix/module.js) with a search for "historyQuery:function", then changing var o="clock", I can again select a random range with no error (after a ctrl+F5 to force the browser to fetch the modified file, of course). Depending on what exactly that division/multiplication was supposed to do, however, the resulting graph may or may not be exactly accurate but I didn't see any obvious error. |
Same issue occurred after updating: Grafana CLI version 8.2.3 Propose from @nbriche didn't work for me :( |
I will revisit it and check whether my solution was a fluke, or I'll give more precise instructions of how I managed it. Note that since the plugin is signed, any modification to its files will disable it when the Grafana server restarts and you'll have to reinstall the plugin (ask me how I know) |
Okay, thank you! Another question - is there hope for update which resolve this problem in future? |
That works for me. Thanks. |
I have replaced My dashboards arent too fancy, but Im certain removing Grafana 8.2.3 |
So I've restarted Grafana and had to reinstall the Zabbix plugin; the bug is present. I will retrace my previous steps for @Ghotome (and anyone else) to ensure I didn't mess up somewhere. The module.js file I've mentioned is a one-liner minified, at The specific variable I'm modifying is defined at position 73012: My steps:
I won't for now correct the variable again, since it will break the plugin when the server restarts. I will just disable DirectDB Connection for now. |
I don't know what it's supposed to look like though... |
Sorry for delay, @nbriche. I've tried your suggestion, here what I've accomplish:
Here some screenshots: |
Does it also happen with Direct DB Connection disabled? If so (and maybe even if not) this problem may not be related to this current issue. Someone with more experience with Grafana than I (I only started Grafana two weeks ago, I'm not all that familiar yet) may have an idea if you open a specific issue about this. |
This problem occurred just after we disable Direct DB future. |
In that case this is probably not related to this issue. You should check if there's already an issue open for it (or maybe already resolved!), and if not, open one. |
@nbriche yes, you're right it's a division bug. Disabling direct db connection is a workaround. |
I have Direct DB connection disabled in the datasource configuration and I still have the issue. When running a test with Direct DB disabled, I still appear to get a Direct DB connection though: |
Describe the bug
&from=1633004132575&to=1633006364306 - doesn't work
&from=now-2d&to=now - works
&from=now-2d&to=now-1d - work
Expected behavior
the ability to select graphs with the mouse
Screenshots
Software versions
The text was updated successfully, but these errors were encountered: