Configure Multiple Business Application Support for .NET
By default, applications on a single Windows host are mapped to a single business application in the Controller. If needed, you can manually configure the .NET Agent to map different applications on the same Windows host to different business applications in the Controller.
To map applications on a single host to a different business application, you must edit the config.xml manually. The Splunk AppDynamics Agent Configuration utility does not offer this configuration option.
After configuring multiple application support, you cannot use the configuration utility to make configuration changes afterward. If you launch the configuration utility on a server where you configured multiple application support, the utility prompts you to delete the configurations.
Prepare to Configure Multiple Business Applications
Before you configure the .NET Agent, you must install the agent. Use the Splunk AppDynamics Agent Configuration utility to perform basic configuration tasks.
Manually Configure the .NET Agent
Once you have configured the Controller properties for the .NET Agent, instrument your .NET Applications in the config.xml.
Sample Configuration
This sample config.xml
file demonstrates configuration for multiple business applications in the Controller. Because the Windows service TicketService does not specify a controller-application
attribute, it reports to the default business application, Ticket Search Engine
. All applications in the TravelAPIP
ool pool report to the Travel Search Engine
.
<?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">
<!--Configure multiple business applications-->
<applications>
<application name="Ticket Search Engine" default ="true"/>
<application name="Travel Search Engine"/>
</applications>
</controller>
<machine-agent />
<app-agents>
<IIS>
<automatic enabled="false" />
<application-pools>
<application-pool name="TravelAPIPool" controller-application="Travel Search Engine">
<tier name="Travel APIs"/>
</application-pool>
</application-pools>
<applications>
<application path="/" site="TicketSearch" controller-application="Ticket Search Engine">
<tier name="Ticket Search Web"/>
</application>
<application path="/" site="TravelSearch" controller-application="Travel Search Engine">
<tier name="Travel Search Web"/>
</application>
</applications>
</IIS>
<standalone-applications>
<standalone-application executable="StandaloneApp.exe" controller-application="Ticket Search Engine">
<tier name="Ticket Standalone Tier"/>
</standalone-application>
<standalone-application executable="WindowsService.exe" command-line="-x" controller-application="Travel Search Engine">
<tier name="Travel Windows Service Tier"/> </standalone-application>
</standalone-applications>
</app-agents>
</appdynamics-agent>
Agent Configuration Properties for Multiple Application Support
Multiple business application support includes configuration properties for the .NET Agent. These configuration properties supersede the ones documented in .NET Agent Configuration Properties.
Controller Applications Element
The applications
element is a child of the controller
element. It is a container element for all controller applications elements that map to business applications in the Controller.
Required Element: <applications>
Controller Application Element
The controller application
element is a child of the controller applications
element. It indicates the name of the logical business application you see in the Controller. When you have more than one Controller Application element, you must set the default attribute to true
for one of them.
<application name="MyDotNetApplication" default="true"/>
Application name attribute
Set the application name attribute to the business application name in the Controller. If the application name does not exist, the Controller creates it when the agent registers.
Type: String
Default: None
Required: Yes
Application default attribute
Set the application default
attribute to true
for one controller application
element. Instrumented applications without the controller application
attribute register with the default business application in the Controller.
Type: Boolean
Default: false
Required: For one application in multiple application configurations
Controller-Application Attribute
The IIS application
, IIS application-pool
, windows-service
, and standalone-application
elements accept the controller-application
attribute. Set the value to the controller application
element name. If you do not include a controller-application
attribute, the application registers with the default business application.
For example, an IIS application:
<application path="/" site="MySite" controller-application="My Business Application">
Type: String
Default: None
Required: No