{"id":22434777,"url":"https://github.com/phucpnt/docker-google-stackdriver","last_synced_at":"2025-03-27T08:20:33.528Z","repository":{"id":141723843,"uuid":"166379679","full_name":"phucpnt/docker-google-stackdriver","owner":"phucpnt","description":"A container to send log to google stackdriver.","archived":false,"fork":false,"pushed_at":"2019-01-18T09:36:02.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T13:16:00.959Z","etag":null,"topics":["docker-image","stackdriver-logs"],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phucpnt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-18T09:29:26.000Z","updated_at":"2020-05-13T08:50:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"e6d07eb4-f6bb-4b23-bc80-174a510764f7","html_url":"https://github.com/phucpnt/docker-google-stackdriver","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phucpnt%2Fdocker-google-stackdriver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phucpnt%2Fdocker-google-stackdriver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phucpnt%2Fdocker-google-stackdriver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phucpnt%2Fdocker-google-stackdriver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phucpnt","download_url":"https://codeload.github.com/phucpnt/docker-google-stackdriver/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245806459,"owners_count":20675300,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker-image","stackdriver-logs"],"created_at":"2024-12-05T23:10:43.183Z","updated_at":"2025-03-27T08:20:33.498Z","avatar_url":"https://github.com/phucpnt.png","language":"Dockerfile","readme":"## Purpose\nSetup a container that would receiving the log from other docker container and send to google stackdriver\n\n## Usage\n* From the GCP panel, download your service key for `write` log into your stackdriver. Download the file and renamed it to `application_default_credentials.json`\n* Run the docker\n\n  ```docker run -p 5514:514 -v /Users/phucpnt/projects/google-stackdriver-log/application_default_credentials.json:/etc/google/auth/application_default_credentials.json -v /Users/phucpnt/projects/google-stackdriver-log/google-fluentd.conf:/etc/google-fluentd/google-fluentd.conf -e \"GOOGLE_APPLICATION_CREDENTIALS=/etc/google/auth/application_default_credentials.json\" --name=google-log phucpnt/google-stackdriver-log```\n* Remember to assign the following environment for location of the stackdriver log:\n  * GCP_PROJECT_ID: your project id in GCP\n  * GCP_VM_ID: you can name your VM name (any name you want)\n  * GCP_ZONE_ID: use the zone id of GCP ex: northamerica etc...\n  * Why you need that? -\u003e https://github.com/GoogleCloudPlatform/fluent-plugin-google-cloud/issues/156\n\n* Set the other docker instance to use `fluentd` driver for log.\nEg. ```docker run --log-driver=fluentd --log-opt fluentd-address=127.0.0.1:5514 phucpnt/log-test```\n\n## Limitation\n* You can not change the VM_ID dynamically in the stackdriver log base on the docker instance.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphucpnt%2Fdocker-google-stackdriver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphucpnt%2Fdocker-google-stackdriver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphucpnt%2Fdocker-google-stackdriver/lists"}