docker.io/paketobuildpacks/new-relic
The Paketo Buildpack for New Relic is a Cloud Native Buildpack that contributes the New Relic Agent and configures it to connect to the service.
This buildpack will participate if all the following conditions are met
type
of NewRelic
The buildpack will do the following for Java applications:
$JAVA_TOOL_OPTIONS
to use it
newrelic.yml
NEW_RELIC_<KEY>=<VALUE>
The buildpack will do the following for NodeJS applications:
$NODE_MODULES
to use it
newrelic.js
newrelic
module, prepends the main module with require('newrelic');
NEW_RELIC_<KEY>=<VALUE>
The buildpack will do the following for PHP applications:
$PHP_INI_SCAN_DIR
to use itNEW_RELIC_<KEY>=<VALUE>
The buildpack will do the following for Python applications:
${buildpack}/resources/newrelic.ini
to the root folder of your application.newrelic.ini
file at the root of your application.requirements.txt
at the root of your application.The buildpack will do the following for Dotnet (.NET) Core applications:
$CORECLR_NEWRELIC_HOME
& $CORECLR_PROFILER_PATH
to use itnewrelic.config
file with an app-local file containing custom configuration. See the new-relic docs for config precedence information.NEW_RELIC_<KEY>=<VALUE>
Environment Variable | Description |
---|---|
$BP_NEW_RELIC_EXT_SHA256 |
Configure the SHA256 hash of the New Relic extensions archive |
$BP_NEW_RELIC_EXT_STRIP |
Configure the number of directory components to strip from the New Relic extensions archive. Defaults to 0 . |
$BP_NEW_RELIC_EXT_URI |
Configure the download location of the New Relic extensions |
$BP_NEW_RELIC_EXT_VERSION |
Configure the version of the New Relic extensions |
The buildpack optionally accepts the following bindings:
dependency-mapping
Key | Value | Description |
---|---|---|
<dependency-digest> |
<uri> |
If needed, the buildpack will fetch the dependency with digest <dependency-digest> from <uri> |
This buildpack is released under version 2.0 of the Apache License.