Windows DNS Server 2016 and 1709+ Number Of Queries Performance Collection Rule

Microsoft.Windows.DNSServer.2016.Rule.NumberOfQueries (Rule)

Collects Number Of Queries Received for all record types on Zone

Knowledge Base article:

Summary

This rule collects Number Of Queries Received for all record types on Zone.

Element properties:

TargetMicrosoft.Windows.DNSServer.2016.Zone
CategoryPerformanceCollection
EnabledTrue
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.Windows.DNSServer.2016.DNSServerZoneQueryStatisticsFilterZones.DS Default
Mapper ConditionDetection System.Performance.DataGenericMapper Default
WriteToDB WriteAction Microsoft.SystemCenter.CollectPerformanceData Default
WriteToDW WriteAction Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData Default

Source Code:

<Rule ID="Microsoft.Windows.DNSServer.2016.Rule.NumberOfQueries" Enabled="true" Target="Microsoft.Windows.DNSServer.2016.Zone" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="Microsoft.Windows.DNSServer.2016.DNSServerZoneQueryStatisticsFilterZones.DS">
<ComputerName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</ComputerName>
<ZoneName>$Target/Property[Type="Microsoft.Windows.DNSServer.2016.Zone"]/ZoneName$</ZoneName>
<IntervalSeconds>900</IntervalSeconds>
<SyncTime/>
<TimeoutSeconds>240</TimeoutSeconds>
</DataSource>
</DataSources>
<ConditionDetection ID="Mapper" TypeID="Performance!System.Performance.DataGenericMapper">
<ObjectName>DNS Server 2016 Zone</ObjectName>
<CounterName>QueriesReceived</CounterName>
<InstanceName/>
<Value>$Data/Property[@Name='QueriesReceived']$</Value>
</ConditionDetection>
<WriteActions>
<WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>