MSSQL 2014 Replication: Expired Subscriptions (\%)

Microsoft.SQLServer.2014.Replication.CollectionRule.Distributor.PercentOfExpiredSubscriptionsPerformanceCounter (Rule)

The Percentage of Expired Subscriptions for the Distributor

Knowledge Base article:

Summary

The Percentage of Expired Subscriptions for the Distributor

Overrideable Parameters

Name

Description

Default Value

Enabled

Enables or disables the workflow

Yes

Interval (seconds)

The recurring interval of time in seconds in which to run the workflow.

300

Timeout (seconds)

Timeout (seconds)

300

Synchronization Time

Synchronization Time

 

Element properties:

TargetMicrosoft.SQLServer.2014.Replication.Distributor
CategoryPerformanceCollection
EnabledTrue
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.SQLServer.2014.Replication.DataSource.DistributorPercentOfDeactivatedSubscriptionsMonitor Microsoft.SQLServer.Replication.Monitoring.RunAs.Monitor
Mapper ConditionDetection System.Performance.DataGenericMapper Default
WriteToDatabase WriteAction Microsoft.SystemCenter.CollectPerformanceData Default
WriteToDW WriteAction Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData Default

Source Code:

<Rule ID="Microsoft.SQLServer.2014.Replication.CollectionRule.Distributor.PercentOfExpiredSubscriptionsPerformanceCounter" Enabled="true" Target="MS2RD!Microsoft.SQLServer.2014.Replication.Distributor" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="Microsoft.SQLServer.2014.Replication.DataSource.DistributorPercentOfDeactivatedSubscriptionsMonitor" RunAs="MSRL!Microsoft.SQLServer.Replication.Monitoring.RunAs.Monitor">
<SqlTimeout>300</SqlTimeout>
<ConnectionString>$Target/Property[Type="MSRL!Microsoft.SQLServer.Replication.Library.GenericDistributor"]/ConnectionString$</ConnectionString>
<MeasuredStateId>0</MeasuredStateId>
<IntervalSeconds>300</IntervalSeconds>
<SyncTime/>
</DataSource>
</DataSources>
<ConditionDetection ID="Mapper" TypeID="Perf!System.Performance.DataGenericMapper">
<ObjectName>$Target/Property[Type="MSRL!Microsoft.SQLServer.Replication.Library.GenericDistributor"]/InstanceName$</ObjectName>
<CounterName>Distributor: Expired Subscription (%)</CounterName>
<InstanceName/>
<Value>$Data/Property[@Name='DistributorPercentOfDeactivatedSubscriptions']$</Value>
</ConditionDetection>
<WriteActions>
<WriteAction ID="WriteToDatabase" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>