Skip to content
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

Add documentation for datasource provisioning #109

Open
klagroix opened this issue Nov 22, 2022 · 0 comments
Open

Add documentation for datasource provisioning #109

klagroix opened this issue Nov 22, 2022 · 0 comments

Comments

@klagroix
Copy link

Grafana provides the option to provision datasources using yaml config files: https://grafana.com/docs/grafana/latest/administration/provisioning/#data-sources

Having documentation for this in the README, the Scalyr docs, or on the Grafana Plugin page would be a nice to have.

I was able to get this working using the following yaml:

apiVersion: 1

datasources:
  - name: Dataset (Scalyr)
    uid: dataset
    type: sentinelone-dataset-datasource
    access: proxy
    orgId: 1
    version: 1
    editable: true
    jsonData:
      scalyrUrl: "https://app.scalyr.com/"
    secureJsonData:
      apiKey: "INSERTAPIKEYHERE"

(Found scalyrUrl and apiKey are the required key names by looking at this: https://github.com/scalyr/scalyr-grafana-datasource-plugin/blob/master/src/ConfigEditor.tsx)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant