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

Datasource.yaml IaC definition of Grafana github datasource #154

Closed
ghost opened this issue Jan 4, 2022 · 2 comments
Closed

Datasource.yaml IaC definition of Grafana github datasource #154

ghost opened this issue Jan 4, 2022 · 2 comments

Comments

@ghost
Copy link

ghost commented Jan 4, 2022

Hello Everyone,

I like your plugin and via manual import and setup - works perfect.
How about IaC ? I would like to setup datasources in YAML files similar to:

image

Access Token is necessary to proper define of github-grafana datasource.
Can you provide any example config, please ?

@tchellomello
Copy link

tchellomello commented Feb 3, 2022

@MichalZegar From this code https://github.com/grafana/github-datasource/blob/main/cypress/integration/smoke.spec.ts#L86-L88

it seems you should use

secureJsonData:
  accessToken: xxxx

I actually managed to work with the below:

- editable: true
  jsonData:
    tracesToLogs: {}
  name: GitHub
  secureJsonData:
    accessToken: xxxx

@ghost
Copy link
Author

ghost commented Feb 3, 2022

This is working !!! Thanks a lot ;)

@ghost ghost closed this as completed Feb 3, 2022
This issue was closed.
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