Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

[Q] How to do provisioning? #6

Open
kgroshert opened this issue May 10, 2022 · 4 comments
Open

[Q] How to do provisioning? #6

kgroshert opened this issue May 10, 2022 · 4 comments

Comments

@kgroshert
Copy link

Hello, after installing the plugin, can you provide some info how to configure the plugin using grafana-provisioning?
I could not find it in the documentation and of course I don't want to setup the plugin manually.

Thanks!

@kgroshert
Copy link
Author

To answer my own question, could you verify that this is correct and maybe put it in the README?

datasources:
  - name: bmchelix-prod
    type: bmchelix-ade-datasource
    url: https://url.to.bmchelix/
    jsonData:
      tenantId: 123456789
    secureJsonData:
      accessKey: xxxxx
      secretKey: xxxxx
    readOnly: true

@bfarrell
Copy link
Member

@kgroshert Thanks for digging in. That looks correct. We will do one validation on Monday and update the docs.

@abhijeet-teli
Copy link
Contributor

Hi @kgroshert ,

We've validated the provisioning and it works fine you probably need to add few more attributes if you are using multiple orgs
Here is the sample -

datasources:
 - name: BMC Helix
   type: bmchelix-ade-datasource
   access: proxy
   orgId: 1
   url: https://abc.helix.bmc.com
   jsonData:
     tenantId: "123456789"
   secureJsonData:
    accessKey: "xxxxxx"
    secretKey: "xxxxxx"

#   <bool> mark as default datasource. Max one per org
#   isDefault: false
    
#   <bool> allow users to edit datasources from the UI.
#   editable: false

last two attributes are optional you can choose to leave them commented.

We will be releasing new version very soon, Will update the Readme for provisioning.

Thanks for pointing this out,

Let us know if you need any further details.

@kgroshert
Copy link
Author

Hi @abhijeet-teli @bfarrell,
just found this old open issue. The sample looks good, while you are at it you might want to copy & paste that into the README (I think it's still missing).
Cheers,
Kai

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

No branches or pull requests

3 participants