Skip to content
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

Connection failed: Column metric must be of type char,varchar or text, got: *uint64 0xc42081f2b8 #569

Closed
vukomir opened this issue May 8, 2018 · 8 comments

Comments

@vukomir
Copy link

vukomir commented May 8, 2018

I'm submitting a ...

  • [X ] Bug report

If you don't send bug report, remove sections below

For bug report please include this information:

Software Versions

Grafana Zabbix Grafana-Zabbix Plugin
5.1.1 3.4.7 3.9.1

What did you do?

Updated grfana to last version

What was the expected result?

Normal operation

What happened instead?

after update zabbix data stoped apearing in Grafana, when i tested the connection(Data Sources) i got following error.
Connection failed: Column metric must be of type char,varchar or text, got: *uint64 0xc42081f2b8
this only hapens when Direct DB Connection is enable in Zabbix Data Sources

@jtl999
Copy link

jtl999 commented May 16, 2018

I can confirm the same issue

@plrunner
Copy link

+1

zabbix-server-mysql: 3.4.9
grafana: 5.1.3
grafana-zabbix: 3.9.1

@plrunner
Copy link

To work around the problem I just downgraded Grafana to 5.1.0 and got it working again.

@alexanderzobnin
Copy link
Collaborator

This should be fixed, see #564. Could you show network request when you saving dashboard?

@noonedeadpunk
Copy link

For me problem still persists with grafana 5.1.3, zabbix 3.0.4 and zabbix-grafana version 3.9.1. Is there some debug option in grafana to trace network request or do you mean to trace it with tcpdump?

@alexanderzobnin
Copy link
Collaborator

@noonedeadpunk you can use browser dev tools to trace network queries. Please, post SQL query invoked by grafana.

@noonedeadpunk
Copy link

It's pretty strange, but today the problem has resolved itself... Probably, there had been some browser cache... But before posting reply in the thread I've restarted grafana server several times and reloaded page.

So it seems, that problem has been fixed in 3.9.1.
The SQL request, that I've found today was the following:
{"queries":[{"refId":"A","format":"time_series","datasourceId":3,"rawSql":"SELECT CAST(itemid AS CHAR) AS metric, clock AS time_sec, value_avg AS value FROM trends_uint LIMIT 1","maxDataPoints":10000}]}
But it seems, that it doesn't matter anymore.

@alexanderzobnin
Copy link
Collaborator

Yes, looks like a cache issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants