Microsoft.SystemCenter.ApplicationInsights.Template.AppsDiscovery.NET Application Performance Monitoring with Application Insights

Microsoft.SystemCenter.ApplicationInsights.Template.AppsDiscovery (Template)

This template allows you to get performance and usage telemetry about your live web application by using Visual Studio Application Insights.

Source Code:

<Template ID="Microsoft.SystemCenter.ApplicationInsights.Template.AppsDiscovery">
<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="ApplicationsList" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="TargetGroup" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="InstrumentationKey" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="TemplateIdString" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="SettingsHash" type="xsd:string"/>
</Configuration>
<References>
<Reference ID="Self"/>
<Reference ID="System"/>
</References>
<Implementation>
<TypeDefinitions>
<EntityTypes>
<ClassTypes>
<ClassType ID="Microsoft.SystemCenter.ApplicationInsights.ApplicationTemplate.$TemplateConfig/TemplateIdString$" Base="$Reference/Self$Microsoft.SystemCenter.ApplicationInsights.ApplicationTemplate" Abstract="false" Accessibility="Public" Hosted="false" Singleton="true"/>
</ClassTypes>
</EntityTypes>
</TypeDefinitions>
<Monitoring>
<Discoveries>
<Discovery ID="Microsoft.SystemCenter.ApplicationInsights.ApplicationTemplate.$TemplateConfig/TemplateIdString$.Rule" Enabled="true" Target="Microsoft.SystemCenter.ApplicationInsights.ApplicationTemplate.$TemplateConfig/TemplateIdString$">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="$Reference/Self$Microsoft.SystemCenter.ApplicationInsights.Application"/>
<DiscoveryClass TypeID="$Reference/Self$Microsoft.SystemCenter.ApplicationInsights.StatusMonitor"/>
<DiscoveryRelationship TypeID="$Reference/Self$Microsoft.SystemCenter.ApplicationInsights.ApplicationTemplateContainsApplication"/>
</DiscoveryTypes>
<DataSource ID="Discovery" TypeID="$Reference/Self$Microsoft.SystemCenter.ApplicationInsights.ApplicationTemplate.DataSource">
<IntervalSeconds>21600</IntervalSeconds>
<ApplicationsList>$TemplateConfig/ApplicationsList$</ApplicationsList>
<TargetGroup>$TemplateConfig/TargetGroup$</TargetGroup>
<InstrumentationKey>$TemplateConfig/InstrumentationKey$</InstrumentationKey>
<TemplateIdString>$TemplateConfig/TemplateIdString$</TemplateIdString>
<TemplateName>$TemplateConfig/Name$</TemplateName>
<SettingsHash>$TemplateConfig/SettingsHash$</SettingsHash>
</DataSource>
</Discovery>
</Discoveries>
</Monitoring>
<LanguagePacks>
<LanguagePack ID="ENU" IsDefault="true">
<DisplayStrings>
<DisplayString ElementID="Microsoft.SystemCenter.ApplicationInsights.ApplicationTemplate.$TemplateConfig/TemplateIdString$">
<Name>Application Group: $TemplateConfig/Name$</Name>
<Description>$TemplateConfig/Description$</Description>
</DisplayString>
<DisplayString ElementID="Microsoft.SystemCenter.ApplicationInsights.ApplicationTemplate.$TemplateConfig/TemplateIdString$.Rule">
<Name>Create objects tree rule</Name>
<Description>Create objects tree rule</Description>
</DisplayString>
</DisplayStrings>
</LanguagePack>
</LanguagePacks>
</Implementation>
</Template>