paveldanilin / grafana-csv-plugin

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

Local File fetch from windows not working #15

Closed Jithu2015 closed 4 years ago

Jithu2015 commented 4 years ago

I was trying to set it up in my windows local machine. I gave the path as my window dir - D:\xxx.csv, but it says validation error.

Grafana Version: v7.0.3

Logs: Log: t=2020-06-23T06:56:43-0400 lvl=eror msg=“Validation error, invalid URL: “D:\alertisite\hsm_stats.csv”” logger=context userId=1 orgId=1 uname=admin error=“Validation of data source URL “http://D:\\alertisite\\hsm_stats.csv” failed: parse “http://D:\\alertisite\\hsm_stats.csv”: invalid port “:\alertisite\hsm_stats.csv” after host” remote_addr=[::1]

image

paveldanilin commented 4 years ago

@Jithu2015 Hi! I have fixed the error for Grafan 7.x.x. , could you help with testing? Let me know if there are any errors. Thank you!

paveldanilin commented 4 years ago

@Jithu2015 Take into consideration that you can omit defining columns at the DS config form. In that case, the plugin tries to auto-detect columns and their datatypes.

Jithu2015 commented 4 years ago

@paveldanilin : Sure i will test and update back, will also consider ignoring defining columns and update further.

Jithu2015 commented 4 years ago

Great its working now and its also auto detecting the columns :)

image

Sample Dashboard:

image