Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 747 Bytes

README.md

File metadata and controls

20 lines (15 loc) · 747 Bytes

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