paveldanilin / grafana-csv-plugin

CSV datasource for Grafana 6.x.x / 7.x.x
MIT License
36 stars 12 forks source link

Compatibilty with Grafana 7.x #19

Closed mutton74 closed 4 years ago

mutton74 commented 4 years ago

Reading through the previous issues/wiki - are you able to add support for the newest Grafana please?

paveldanilin commented 4 years ago

Have you checked a version form the develop branch? It should work with Grafana 7.x

paveldanilin commented 4 years ago

@mutton74 any updates?

mutton74 commented 4 years ago

no sorry, wasnt quiet sure where to look - where is the develop branch (i am a beginner with github/grafana)

paveldanilin commented 4 years ago

Don't worry! It is pretty simple! Just download the archive https://github.com/paveldanilin/grafana-csv-plugin/archive/develop.zip

unpack the 'dist' folder to your Grafana plugin directory and restart Grafana Let me know if you have any questions.

paveldanilin commented 4 years ago

@mutton74 did you manage to install and test the plugin ?

mutton74 commented 4 years ago

No sorry, might get a chance next week - in fact really need this working so will definitely make time

mutton74 commented 4 years ago

OK, I tried but can't see the plugin when trying to add a new datasource

I downloaded the zip, unpacked the dist folder contents into a directory call grafana-csv-plugin under my plugins directory, restarted (even did a whole reboot) Grafana, but still can't see it.

Any hints as to what I am doing wrong? Capture

Capture

paveldanilin commented 4 years ago

Please, check that the executable file (grafana-csv-plugin_linux_amd64 / grafana-csv-plugin_windows_amd64.exe depends on your OS ) has the Execute flag.

mutton74 commented 4 years ago

It didn't, but upon changing and a restart didn't make any difference.

I gave both executables 777 permissions just to be sure

Capture

The CLI shows it is installed

paveldanilin commented 4 years ago

Could you check grafana.log for any errors?

paveldanilin commented 4 years ago

Since you are using Grafana 7.x there is a special setting to control unsigned plugins. Please check https://grafana.com/docs/grafana/latest/administration/configuration/#allow_loading_unsigned_plugins If it is false you will definitely face the error: lvl=eror msg=“Failed to load plugin” logger=plugins error=“plugin “grafana-csv-plugin” is unsigned”

mutton74 commented 4 years ago

ok Thanks, now have it enabled

Sorry for all the questions

Trying to add the CSV file which is /home/ec2-user/weather.csv (have full R/W access)

but get an error of "there is no access to file /home/ec2-user/weather.csv"

Capture

paveldanilin commented 4 years ago

Usually, the grafana-server service runs from the grafana user...Does your grafana-service run from ec2-user? Or you explicitly granted rights for the grafana user on /home/ec2-user/weather.csv ?

mutton74 commented 4 years ago

ok, for now I have just dropped my csv into the plugins directory and i'll work out user permission later.

Working now, thanks for your help