Configure Environment Variables
To instrument Serverless APM for AWS Lambda, you must configure the environment variables listed in the table below. Enter all applicable information as key-value environment variables in the AWS Management Console.
Environment Variable | Description | Default | Required | Example Value |
---|---|---|---|---|
APPDYNAMICS_ACCOUNT_NAME
|
Account name associated with the Controller used by your AWS Lambda function. |
<AppDynamics_account_name>
|
Yes |
customer1
|
APPDYNAMICS_AGENT_ACCOUNT_ACCESS_KEY
|
Access key for your Controller. See Agent-to-Controller Connections. |
<AppDynamics_account_key>
|
Yes |
AB1a2b3c4$123
|
APPDYNAMICS_APPLICATION_NAME
|
Name of the application where the tracer is instrumented. |
<Your_app_name>
|
Yes |
testApp
|
APPDYNAMICS_CONTROLLER_HOST
|
Host associated with the Controller used by your AWS Lambda
function. Do not include http:// or
https://
|
<Controller_host_name>
|
Yes |
<accountname>.saas.appdynamics.com
|
APPDYNAMICS_CONTROLLER_PORT
|
Port associated with your Controller. |
443
|
No | 8080 |
APPDYNAMICS_DISABLE_AGENT
|
Disables the Serverless Tracer and stops all serverless application monitoring. Accepted values are true false |
false
|
No |
true
|
APPDYNAMICS_ENABLE_EUM
|
Used by the Node.js Serverless Tracer to enable End User Monitoring for AWS Lambda functions. Set to true false See Integrate the Node.js Serverless Tracer with End User Monitoring for details. |
false
|
No |
true
|
APPDYNAMICS_EUM_AJAX
|
When set to true ensures EUM data is always
returned in Ajax form. For example, ADRUM_0,
ADRUM_1 , and so on. |
false
|
No |
true
|
APPDYNAMICS_HTTP_TIMEOUT_MS
|
HTTP timeout in milliseconds for the tracer to send data downstream. |
2000
|
No | 3000 |
APPDYNAMICS_LOG_LEVEL
|
Log level for the tracer. Accepted values are DEBUG INFO WARN ERROR FATAL |
INFO
|
No |
INFO
|
APPDYNAMICS_SERVERLESS_API_ENDPOINT
|
Cisco AppDynamicsendpoint that the tracer to reports to. Serverless API endpoints are available for the following AWS regions: Sydney, Frankfurt, and Oregon. |
<https://your-endpoint-name-api.saas.appdynamics.com/>
|
Yes |
|
APPDYNAMICS_TIER_NAME
|
The name of your AWS Lambda function. |
<Your_tier_name> Defaults to the name of your AWS Lambda function. |
No |
serverlessTestTier
|