Environment Variables

You can configure the following environment variables for the C/C++ SDK.

Environment Variable Value
APP_NAME The name of the application.
CONTROLLER_ACCESS_KEY The access key for connecting to the Controller.
CONTROLLER_ACCOUNT The account name for connecting to the Controller.
CONTROLLER_HOST The hostname of the Controller.
CONTROLLER_PORT The port number on which the Controller is listening.
CONTROLLER_HTTP_PROXY_HOST If using an HTTP proxy to talk to the Controller, the hostname of that HTTP proxy.
CONTROLLER_HTTP_PROXY_PASSWORD The password for connecting to the HTTP proxy.
CONTROLLER_HTTP_PROXY_PASSWORD_FILE The file containing password to connect to the HTTP proxy with.
CONTROLLER_HTTP_PROXY_PORT The port number of the HTTP proxy.
CONTROLLER_HTTP_PROXY_USERNAME The username to connect to the HTTP proxy with.
CONTROLLER_USE_SSL (optional)

To disable SSL, set to off 0 f false on 1 t true

CONTROLLER_CERTIFICATE_FILE The SSL certificate file name for connecting to the Controller.
CONTROLLER_CERTIFICATE_DIR The directory where the SSL certificate is located.
FLUSH_METRICS_ON_SHUTDOWN

To enable metric flushing before shutdown, set to a non-zero integer.To disable metric flushing before shutdown, set to 0

INIT_TIMEOUT_MS The number of milliseconds that you want appd_sdk_init, an asynchronous action, to wait until it has received Controller configuration and is ready to capture business transactions.

LOGGING_LOG_DIR

The directory that the logs are saved to.
LOGGING_LEVEL The level of severity for which activity is logged. Options: all, trace, debug, info, warn, error.
LOGGING_MAX_NUM_FILES The maximum number of log files that can be saved.
LOGGING_MAX_FILE_SIZE_BYTES The maximum log file size that can be saved.
NODE_NAME The name of the node.
TIER_NAME The name of the tier.
UNIQUE_HOST_ID (optional) The identifier of the physical host or virtual machine that the agent is installed on.