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

Ability to set projectId on the dataSource #43

Open
Stono opened this issue Jul 30, 2023 · 1 comment
Open

Ability to set projectId on the dataSource #43

Stono opened this issue Jul 30, 2023 · 1 comment

Comments

@Stono
Copy link

Stono commented Jul 30, 2023

Hi,
It'd be great if i could select the projectId on the datasource during provisioning. For context; we run a grafana instance per environment, each environment for us (eg testing, dev, preprod, prod, bcp) is also a separate GCP project.

Ta

@xiangshen-dk
Copy link
Collaborator

You should be able to use the plugin config file to specify the default project.

Below is an example:

sudo cat /etc/grafana/provisioning/datasources/logging.yaml

# # config file version
apiVersion: 1

datasources:
  - name: Google Cloud Logging
    type: googlecloud-logging-datasource
    access: proxy
    editable: true
    jsonData:
      #authenticationType: gce
      #gceDefaultProject: shenxiang-gcp-solutions-test1
      authenticationType: jwt
      defaultProject: shenxiang-gcp-solution
      ClientEmail: "[email protected]"
    secureJsonData:
      privateKey: "-----BEGIN PRIVATE KEY-----\nMIIEvQIBADA.........X+q2g=\n-----END PRIVATE KEY-----\n"

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

2 participants