.NET Application Performance Monitoring

Microsoft.SystemCenter.Apm.ApplicationTemplate.Template (Template)

This template lets you monitor ASP.NET and WCF Applications hosted in IIS 7.0, IIS 8.0 and IIS 10.0, in addition to Windows Services that use the Microsoft .NET Framework. To monitor ASP.NET applications and web services, you must install and import the Windows Server 2008 Internet Information Services 7.0 management pack or the Windows Server 2012 Internet Information Services 8.0 management pack or the Windows Server 2016 Internet Information Services 10.0 management pack. To use this template to monitor a Windows service that is based on the .NET framework with the APM feature, you must install the Windows Service Library management pack, and you must add basic monitoring of the service by using the Windows Service monitoring template.

Source Code:

<Template ID="Microsoft.SystemCenter.Apm.ApplicationTemplate.Template">
<Configuration>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Name" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Description" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="TypeId" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" minOccurs="1" name="AppChunk1" type="xsd:string"/>
</Configuration>
<References>
<Reference ID="System"/>
<Reference ID="SC"/>
<Reference ID="AI"/>
<Reference ID="Self"/>
<Reference ID="ApplicationMonitoring"/>
<Reference ID="InstanceGroup"/>
</References>
<Implementation>
<TypeDefinitions>
<EntityTypes>
<ClassTypes>
<ClassType ID="Microsoft.SystemCenter.Apm.ApplicationTemplate.$TemplateConfig/TypeId$" Base="$Reference/Self$Microsoft.SystemCenter.Apm.ApplicationTemplate" Abstract="false" Accessibility="Public" Hosted="false" Singleton="true"/>
</ClassTypes>
</EntityTypes>
</TypeDefinitions>
<Monitoring>
<Discoveries>
<Discovery ID="Microsoft.SystemCenter.Apm.ApplicationTemplate.$TemplateConfig/TypeId$.Rule" Enabled="true" Target="Microsoft.SystemCenter.Apm.ApplicationTemplate.$TemplateConfig/TypeId$">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="$Reference/ApplicationMonitoring$Microsoft.SystemCenter.ApplicationMonitoring.Net.ApplicationComponentGroup"/>
</DiscoveryTypes>
<DataSource ID="Discovery" TypeID="$Reference/Self$Microsoft.SystemCenter.Apm.ApplicationTemplate.DataSource">
<IntervalSeconds>21600</IntervalSeconds>
<AppChunk1>$TemplateConfig/AppChunk1$</AppChunk1>
</DataSource>
</Discovery>
</Discoveries>
</Monitoring>
<LanguagePacks>
<LanguagePack ID="ENU" IsDefault="true">
<DisplayStrings>
<DisplayString ElementID="Microsoft.SystemCenter.Apm.ApplicationTemplate.$TemplateConfig/TypeId$">
<Name>Application Group: $TemplateConfig/Name$</Name>
<Description>$TemplateConfig/Description$</Description>
</DisplayString>
<DisplayString ElementID="Microsoft.SystemCenter.Apm.ApplicationTemplate.$TemplateConfig/TypeId$.Rule">
<Name>Create objects tree rule</Name>
<Description>Create objects tree rule</Description>
</DisplayString>
</DisplayStrings>
</LanguagePack>
</LanguagePacks>
</Implementation>
</Template>