etichy / grafana-swis-datasource

DataSource plugin for grafana to access SolarWinds data via SWIS REST API
MIT License
52 stars 11 forks source link

Plugin grafana-swis-datasource-develop not compactible on Grafana 9. Same plugin was working fine in version 6. #17

Closed Karthick31 closed 1 year ago

Karthick31 commented 1 year ago

Plugin grafana-swis-datasource-develop not compactible on Grafana 9. Same plugin was working fine in version 6.

christophertjones123 commented 1 year ago

so i figured this out at least for my environment. It's probably worth you looking at as well

I've confirmed it works in version 9.1.6

odhub commented 1 year ago

image Hi, I follow step define by @christophertjones123 but get error above when try to creare datasources. Anyone has a clue how to solved it ?

christophertjones123 commented 1 year ago

@odhub take a look at the log. That looks a lot like what I was getting before I modified the Grafana.ini, you could also check to make sure that the Grafana user has rights to the extracted files. Mine didn’t need it but other colleagues that I know have said they’ve had to chown and chgrp to grafana before it would start working. Something else that was super apparent to me that took a little trial and error was also what to download. I basically downloaded the whole develop branch and extracted that to the plugins location.

odhub commented 1 year ago

Thank you @christophertjones123 , look like grafana can't all files under /grafana-swis-datasources/ even try to get logo also not found. I will try downloadwhole develop branch and extracted to the plugins location. image

odhub commented 1 year ago

Hi @christophertjones123 , may i know where you put your plugins ?, seems like in the latest version of grafana on centos/redhat defaults location is /usr/share/grafana/public/app/plugins/datasource , is it correct to put plugin there ?. Thank you

christophertjones123 commented 1 year ago

@odhub the location I put the plug-in is my first bullet point (/var/lib/grafana/plugins). I found out cause I installed a plug-in from the plug-in catalog and then did a search for that plug-in name within my OS, and that’s the location I found them. You could probably do the same thing in case yours is different. I will say I initially thought what you did and then found that directory.

etichy commented 1 year ago

Hi, tested with grafana 10.0.0 and it works fine. I updated readme, so enable unsigned plugin is mentioned there.