Skip to content

Add documentation for datasource provisioning #109

@klagroix

Description

@klagroix

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions