Skip to content

oskoss/gcp-logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GCP Logger

Basic Idea:

  1. Listen for messages (over HTTP)
  2. Send messages to Google Cloud Logging (via golang api)

App Configuration

  1. Get service account token from GCP (with access to send logs to cloud logging)
  2. export GOOGLE_APPLICATION_CREDENTIALS=<PATH-TO-SERVICE-ACCOUNT-KEY-JSON> #optional-if-running-in-gcp
  3. export PROJECT_ID=<GCP-PROJECT-ID>
  4. export PORT=<PORT> #defaults 8080
  5. export QUEUE_MAX_SIZE=<QUEUE_MAX_SIZE> #defaults 10
  6. export LOGGER_NAME=<LOGGER_NAME> #defaults cute-animal-name-logger

K8s Stuff

  1. Image is available at oskoss/gcp-logger
  2. Namespace/Deployment/Service work with internal access only
  3. Istio is optional

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages