.NET 應用程式效能監視

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

除了使用 Microsoft .NET Framewor 的 Windows 服務之外,此範本也可讓您監視 IIS 7.0、IIS 8.0 及 IIS 9.0 上代管的 ASP.NET 與 WCF。若要監視 ASP.NET 應用程式及 Web 服務,必須安裝並匯入 Windows Server 2008 Internet Information Services 7.0 管理組件、Windows Server 2012 Internet Information Services 8.0 管理組件,或 Microsoft Windows Server Technical Preview Internet Information Services 9 管理組件。若要使用此範本監視以 .NET framework 以及 APM 功能為基礎的 Windows 服務,您必須安裝 Windows Service Library 管理組件,而且必須使用 Windows 服務監視範本來新增服務的基本監視。

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>