Related pages: |
The uses a single configuration file to control agent behavior and .NET Machine Agent behavior. The configuration file specifies Controller connectivity, .NET Machine Agent operations, and app agent functionality for IIS applications, Windows services, and standalone applications. The single configuration file enables you to:
web.config
filesUse the Controller to upload and manage .NET Agent configuration files. From the Controller, you can deploy a configuration to a machine or multiple machines where the agent is installed. See Manage Configuration for .NET.
You configure the agent properties in the config.xml
file in the agent Config
directory. To edit the config.xml
, you must launch the editor as an administrator. When you run the .NET Agent Configuration Utility, it writes the config.xml
file to one of these locations:
%ProgramData%\AppDynamics\DotNetAgent\Config\config.xml
Windows Azure
For Windows Azure deployments, the .NET Agent NuGet package contains the config.xml
file.
Sample config.xml files install to this location:%ProgramFiles%\AppDynamics\AppDynamics .NET Agent\SampleConfigurations
After you edit the |
config.xml
Some configurations require that you edit the
config.xml
:
AppDynamics.Agent.Coordinator
service.Edit the config.xml
file as an administrator.
Modify the XML file according to the configuration instructions.
Save the config.xml
file.
AppDynamics.Agent.Coordinator
service.config.xml
The most basic configuration shows the required sections for agent configuration. This example instruments all IIS applications using the automatic element, <automatic />
. For this example, does not instrument Windows services or standalone applications.
<?xml version="1.0" encoding="utf-8"?> <appdynamics-agent xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <controller host="mycontroller.mycompany.com" port="8090" ssl=false"> <application name="MyDotNetApplication" /> <account name="customer1" password="changeme" /> </controller> <machine-agent /> <app-agents> <IIS> <automatic /> </IIS> </app-agents> </appdynamics-agent> |
The configuration file that controls log files for the is located here:
%ProgramFiles%\AppDynamics\AppDynamics .NET Agent\AppDynamicsAgentLog.config |
The configuration file uses NLog configuration format.