Jelajahi Sumber

stackdriver: update docs, showing how to escape private key and use yaml multiline strings

Erik Sundell 7 tahun lalu
induk
melakukan
1a838ce75d
1 mengubah file dengan 6 tambahan dan 1 penghapusan
  1. 6 1
      docs/sources/features/datasources/stackdriver.md

+ 6 - 1
docs/sources/features/datasources/stackdriver.md

@@ -177,5 +177,10 @@ datasources:
       tokenUri: https://oauth2.googleapis.com/token
       clientEmail: stackdriver@myproject.iam.gserviceaccount.com
     secureJsonData:
-      privateKey: "<contents of your Service Account JWT Key file>"
+      privateKey: |
+        -----BEGIN PRIVATE KEY-----
+        POSEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCb1u1Srw8ICYHS
+        ...
+        yA+23427282348234=
+        -----END PRIVATE KEY-----
 ```