Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provisioning the datasource with a local file #155

Closed
WizBangCrash opened this issue Jan 15, 2022 · 2 comments
Closed

Provisioning the datasource with a local file #155

WizBangCrash opened this issue Jan 15, 2022 · 2 comments

Comments

@WizBangCrash
Copy link

WizBangCrash commented Jan 15, 2022

Hi,
I am provisioning Grafana in a docker container with your plug-in and want to provision the CSV as a local file.
Using the datasource provisioner below everything works, except once the container is up & running I have to go and edit the data source to select "Local" as is always defaults to HTTP.
Is there are an option I can add to the provisioner to tell grafana that the data source is local?
I have tried changing the url to precede the path with "file:" e.g. file:///files/display-list.csv and file://files/display-list.csv, but neither work.

apiVersion: 1

datasources:
  - name: csv-datasource
    uid: 1257c93b-f998-438c-a784-7e90fb94fb36
    type: marcusolsson-csv-datasource
    url: /files/display-list.csv
    access: "proxy"
    basicAuth: false
    isDefault: false
    editable: true
    version: 1
@Ashameron
Copy link

Adding the following lines to the datasource definition should work:

    version: 1
    jsonData:
      storage: local

@WizBangCrash
Copy link
Author

Thanks @Ashameron. That sorted it for me :-)

@grafana grafana locked and limited conversation to collaborators Mar 1, 2022
@marcusolsson marcusolsson converted this issue into discussion #169 Mar 1, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants