google-stackdriver

module
v1.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2020 License: Apache-2.0

README

gcr.io/paketo-buildpacks/google-stackdriver

The Paketo Google Stackdriver Buildpack is a Cloud Native Buildpack that contributes Stackdriver agents and configures them to connect to the service.

Behavior

This buildpack will participate if any of the following conditions are met

  • A binding exists with kind of StackdriverDebugger
  • A binding exists with kind of StackdriverProfiler

The buildpack will do the following for Java applications:

  • If StackdriverDebugger binding exists contributes a Java debugger agent to a layer and configures $JAVA_OPTS to use it
  • If StackdriverProfiler binding exists contributes a Java profiler agent to a layer and configures $JAVA_OPTS to use it
  • Sets $GOOGLE_APPLICATION_CREDENTIALS to the path of the ApplicationCredentials secret

The buildpack will do the following for NodeJS applications:

  • If StackdriverDebugger binding exists
    • Contributes a NodeJS debugger agent to a layer and configures $NODE_MODULES to use it
    • If main module does not already require @google-cloud/debug-agent module, prepends the main module with require('@google-cloud/debug-agent').start();
  • If StackdriverProfiler binding exists
    • Contributes a NodeJS profiler agent to a layer and configures $NODE_MODULES to use it
    • If main module does not already require @google-cloud/profiler module, prepends the main module with require('@google-cloud/profiler').start();
  • Sets $GOOGLE_APPLICATION_CREDENTIALS to the path of the ApplicationCredentials secret

Configuration

Environment Variable Description
$BPL_GOOGLE_STACKDRIVER_MODULE Configure the name of the application. Defaults to default-module.
$BPL_GOOGLE_STACKDRIVER_VERSION Configure the version of the application. Defaults to <EMPTY>.

License

This buildpack is released under version 2.0 of the Apache License.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL