add google cloud storage

This commit is contained in:
Chris Lu
2018-10-04 01:14:44 -07:00
parent e8ef501f02
commit 56c5c7b1b6
3 changed files with 144 additions and 1 deletions

View File

@@ -178,6 +178,7 @@ collection = ""
ttlSec = 0
[sink.s3]
# experimental
# See https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/sessions.html
# default loads credentials from the shared credentials file (~/.aws/credentials).
enabled = false
@@ -187,5 +188,14 @@ region = "us-east-2"
bucket = "your_bucket_name" # an existing bucket
directory = "" # destination directory (do not prefix or suffix with "/")
[sink.google_cloud_storage]
# experimental
# see https://cloud.google.com/docs/authentication/getting-started
enabled = false
google_application_credentials = "/path/to/x.json" # path to json credential file
projectId = "your_project_id"
bucket = "your_bucket_name" # an existing bucket
directory = "/" # destination directory
`
)