Specify Which WebJobs to Monitor

Use the APPDYNAMICS.PROCESSLIST environment variable to specify which WebJobs the .NET Agent monitors.

Environment Variable: APPDYNAMICS.PROCESSLIST

Type: Strings separated by "|"

Default: None. When undefined, the agent instruments all WebJob running in the app service. When defined, the .NET Agent instruments only the specified processes.

Required: No

Usage Cases:

  • Environment 1: An Azure app service with no WebJobs, where the .NET Agent site extension is installed and configured. After defining the environment variable AppDynamics.ProcessList with the value w3wp.exe, the Daasrunner.exe WebJob, which is a default WebJob that is added to all app services, is not instrumented.
  • Environment 2: An Azure app service, with two WebJobs, webjob1.exe and webjob2.exe, where the .NET Agent site extension is installed and configured. After defining the environment variable AppDynamics.ProcessList with the value w3wp.exe, only the worker process serving the actual web app will be instrumented and no WebJobs will be instrumented. With the environment variable value set to w3wp.exe|webjob1.exe, the worker process serving the web app and the webjob1.exe are instrumented, but the webjob2.exe is not instrumented. With the AppDynamics.ProcessList removed from the App settings of the Azure app service, all the WebJobs, including Daasrunner.exe are instrumented, including the worker process serving the web app.