grafana-zabbix icon indicating copy to clipboard operation
grafana-zabbix copied to clipboard

can't query influx: this.influxDS._seriesQuery(...).then is not a function

Open ramon-roca opened this issue 4 years ago • 7 comments

Just installed Zabbix 5.0 TLS, grafana 8.0.6, zabbix plugin 4.1.5, Direct DB to influx (1.8.7) with effluence-0.1 on ubuntu 20.04 TLS. History is being exported to Influx DB, but getting error on all queries to metrics:

 "this.influxDS._seriesQuery(...).then is not a function" 

querying directly from grafana to influx data source, works.

ramon-roca avatar Aug 05 '21 19:08 ramon-roca

This may be a duplicate of #1221.

i-ky avatar Aug 05 '21 21:08 i-ky

#1221 suggests downgrade to grafana 7.5 as a workaround. I did but problem persists. Disabling Direct DB works, but we're planning intensive graphing on large number of items, and long history.

May I help providing more trace?

ramon-roca avatar Aug 06 '21 06:08 ramon-roca

@ramon-roca can you test is against plugin version 4.2.1 and confirm that problem exists/solved?

alexanderzobnin avatar Aug 11 '21 08:08 alexanderzobnin

@ramon-roca can you test is against plugin version 4.2.1 and confirm that problem exists/solve

thanks, @alexanderzobnin upgraded to 4.2.1 but no luck, still reproducing with a simple query: image

ramon-roca avatar Aug 11 '21 15:08 ramon-roca

I confirm, I have the same problem since months ago, and was stuck with grafana 7.3 Still the same with grafana 8.1.1 and plugin 4.2.1 (with InfluQL & InfluxDB 1.8.4)

julienleboeuf avatar Aug 19 '21 15:08 julienleboeuf

Still no news ? I guess I'll have to discard directdb+influxdb and switch to postgresql/timescaledb

julienleboeuf avatar Nov 02 '21 08:11 julienleboeuf

still not work, innodb direct connection deprecated?

dimsua avatar May 19 '22 09:05 dimsua

I am having the same problem on 7.x. IIRC, I tried 8.x and also had no luck.

If I build a query in InfluxDB and use the Influx plugin directly, it is like 1000x faster than the MySQL direct DB query... so I am highly motivated to make this work.

Unfortunately, the query inspector icon just spins so it's difficult to see exactly what the Zabbix module is trying to do.

Any idea what to try next? A few months ago I tried building the module myself to debug and traced the code deep into one of the libraries but didn't have time to finish debugging. It wasn't a very fun process due to the security changes and code signing requirements.

pyite avatar Aug 30 '22 17:08 pyite

Hi! Here's a linux build with a fix. Please, try to test it out and confirm that issue is fixed. alexanderzobnin-zabbix-app-4.3.0-pre.zip

alexanderzobnin avatar Aug 31 '22 12:08 alexanderzobnin

This fix works for me, thank you!!

pyite avatar Sep 01 '22 15:09 pyite