Hi Surya
Are you able to ssh into the container and check the logs at /tmp/appd? They may not exist if the agent didn't start up correctly.
Since a proxy is required, you'd want to use the Node.js agent specific settings (proxyHost, proxyPort), which you'd set in the require statement (see example below). Doc link: https://docs.appdynamics.com/display/PRO45/Node.js+Settings+Reference
Also, you'll want to explicitly set the other AppD settings from your user provided service in the require statement. The example below is based on a marketplace service and environment variables for app and tier name, so you'll have to adapt it to pull the values from the user provided service (based on how it's stored in VCAP_SERVICES). There some more info here:
https://github.com/cloudfoundry-community/node-cfenv
Add as dependency:
"cfenv" : "latest" ,
Also note that nodeName is set to explicitly append the instance id to guarantee a unique node name when you scale and libagent:true will enable the embedded/proxyless agent.
var cfEnv = require( 'cfenv' );
var appEnv = cfEnv.getAppEnv();
var appdService = appEnv.getServiceCreds( 'pcf-appd-instance' );
var appdynamics = require( "appdynamics" ).profile({
controllerHostName: appdService[ 'host-name' ],
controllerPort: appdService[ 'port' ],
controllerSslEnabled: appdService[ 'ssl-enabled' ],
accountName: appdService[ 'account-name' ],
accountAccessKey: appdService[ 'account-access-key' ],
applicationName: `${process.env.APPD_APP_NAME}`,
tierName: `${process.env.APPD_TIER_NAME}`,
nodeName: `${appEnv.name}.${process.env.CF_INSTANCE_INDEX}`,
libagent: true,
proxyHost: x,
proxyPort: y
});
... View more