neuralfraud / grafana-prtg

A PRTG Datasource plugin for Grafana
180 stars 75 forks source link

Grafana 4.4.1 PRTG Group won't populate #46

Open whi-jkmonroe opened 7 years ago

whi-jkmonroe commented 7 years ago

Group will not populate, but Host, Sensor, and Channel will. The datasource tests out OK, but I dont get any data.

This is the error when you click into the Group box:

Uncaught TypeError: a.toLowerCase is not a function at b.matcher (boot.js:8) at boot.js:8 at Function.grep (boot.js:48) at b.process (boot.js:8) at b.h.lookup (boot.js:8) at HTMLInputElement. (boot.js:8) at Function.each (boot.js:48) at na.fn.init.each (boot.js:47) at na.fn.init.a.fn.typeahead (boot.js:8) matcher @ boot.js:8 (anonymous) @ boot.js:8 grep @ boot.js:48 process @ boot.js:8 h.lookup @ boot.js:8 (anonymous) @ boot.js:8 each @ boot.js:48 each @ boot.js:47 a.fn.typeahead @ boot.js:8

Is there anything else I can try? Maybe go back a couple of revisions of Grafana? Thanks!

neuralfraud commented 7 years ago

I just updated prod to version 4.4.1 and did not have that issue. Same on development, however, I also updated the Development branch code today - it should work ok if you feel like trying that out.

Are you using a template variable somewhere? I've noticed some times a template variable is buggered and it breaks the code.

whi-jkmonroe commented 7 years ago

I am running through the -dev branch right now to test it out and am seeing the same thing.

Since you don't see a similar issue, let me see if I can recreate this with a new instance of Grafana. Thanks!

whi-jkmonroe commented 7 years ago

OK, I got the data pulling with a new instance of Grafana and your latest branch. So that's awesome.

BUT, now I see that I am missing hundreds of devices. For example, I am only able to select 9 servers from one of my Hyper-V clusters that consists of 25. I read previously that I should give it some time to sync up, so that's what I will do.

Are there any 'scaling' issues with this plugin; will it handle 3K devices and 10k sensors?

neuralfraud commented 7 years ago

It doesn't need any time to sync up. make sure the user account has access to all of those objects and that you're not inadvertently filtering via regex. Your old dashboards will require editing, just go in to the metric editor and hit tab in one of the fields.

neuralfraud commented 7 years ago

@whi-jkmonroe Any update? have you tried release version 4.0.0 or 4.0.1? I recommend you download v4.0.1 and let me know how it works - this should be closed/resolved.

whi-jkmonroe commented 7 years ago

Sorry - got pulled onto an implementation. Graphing is working out OK, but I still don't have any values for 'Group' and the drop down list is not populating all of my devices.

I can look deeper once I am done, mid next-week at the latest, but for now I have select graphs working OK.

Updated to the latest 4.0.1 and still on Grafana 4.4.1.

whi-jkmonroe commented 6 years ago

Circling back to this issue - I am now on Grafana 4.6.3 and release 4.0.3. I am still not seeing a list populated with all of our devices, but have been working around the issue by simply manually typing in the name (it will pull it that way). I lose connectivity periodically which is resolved with a restart of the grafana-server, but other than that this seems to be working OK for our use.

Thanks for the plugin!