Commit a1fee2fd by Erik Sundell

stackdriver: add provisioning example for gce authentication

parent 0109051b
...@@ -206,7 +206,7 @@ Example Result: `monitoring.googleapis.com/uptime_check/http_status has this val ...@@ -206,7 +206,7 @@ Example Result: `monitoring.googleapis.com/uptime_check/http_status has this val
It's now possible to configure datasources using config files with Grafana's provisioning system. You can read more about how it works and all the settings you can set for datasources on the [provisioning docs page](/administration/provisioning/#datasources) It's now possible to configure datasources using config files with Grafana's provisioning system. You can read more about how it works and all the settings you can set for datasources on the [provisioning docs page](/administration/provisioning/#datasources)
Here is a provisioning example for this datasource. Here is a provisioning example using JWT authentication type.
```yaml ```yaml
apiVersion: 1 apiVersion: 1
...@@ -218,6 +218,7 @@ datasources: ...@@ -218,6 +218,7 @@ datasources:
jsonData: jsonData:
tokenUri: https://oauth2.googleapis.com/token tokenUri: https://oauth2.googleapis.com/token
clientEmail: stackdriver@myproject.iam.gserviceaccount.com clientEmail: stackdriver@myproject.iam.gserviceaccount.com
authenticationType: jwt
defaultProject: my-project-name defaultProject: my-project-name
secureJsonData: secureJsonData:
privateKey: | privateKey: |
...@@ -227,3 +228,16 @@ datasources: ...@@ -227,3 +228,16 @@ datasources:
yA+23427282348234= yA+23427282348234=
-----END PRIVATE KEY----- -----END PRIVATE KEY-----
``` ```
Here is a provisioning example using GCE Default Service Account authentication.
```yaml
apiVersion: 1
datasources:
- name: Stackdriver
type: stackdriver
access: proxy
jsonData:
authenticationType: gce
```
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment