Skip to content

Grafana datasource for visualizing data from CSV files.

License

Notifications You must be signed in to change notification settings

cluffja/grafana-csv-datasource

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Grafana CSV Datasource - a generic backend datasource

Your backend needs to implement 4 urls:

  • /<folder>/ should return 200 ok. Used for "Test connection" on the datasource config page.
  • /<folder>/sources should return the list of CSV within the group folder.
  • /<folder>/search used by the find metric options on the query tab in panels.
  • /<folder>/query should return metrics based on input.

Installation

To install this plugin, clone this to your grafana plugins diretory :

sudo git clone https://github.com/SmartBlug/grafana-csv-datasource /var/lib/grafana/plugins/
sudo service grafana-server restart

You also need a backend server :

sudo python /var/lib/grafana/plugins/grafana-csv-datasource/backend/PythonServer.py -f ./folders

where "folders" contains :

  • one folder per group
./folders/sample
  • CSV within the group folder
./folders/sample/myFirstCSV.csv
./folders/sample/mySecondCSV.csv
...

Configure Source with the group folder

source should now be available in the data source type dropdown in the Add Data Source View.

About

Grafana datasource for visualizing data from CSV files.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%