SSAS 2008: Query: Average Time Per Query

Microsoft.SQLServer.2008.MSAS_2008_Query_Avg_time_query_15.0_minutes_5_Rule (Rule)

Knowledge Base article:

Summary

Average time per query in milliseconds. This counter is based on queries answered since the last counter measurement. This counter is polled every fifteen minutes.

Unlike most performance data collection rules, this rule requires administrator rights on the server in order for the data to be collected by the agent. As such, this rule is configured to leverage the "SQL Server Monitoring Account" Run As profile that is provided with the SQL. For systems where the default agent action account is not an administrator, you must configure the "SQL Server Monitoring Account" Run As profile accordingly to ensure this performance data is collected.

Note that SQL Server Analysis Services Windows service is not supported by any edition of SQL Server Express.

Overrideable Parameters

Name

Description

Default Value

Enabled

Enables or disables the workflow.

Yes

Frequency (seconds)

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

900

Element properties:

TargetMicrosoft.SQLServer.2008.AnalysisServices
CategoryPerformanceCollection
EnabledTrue
Instance Name$Target/Property[Type="SQL!Microsoft.SQLServer.AnalysisServices"]/PerformanceCounterObject$:Storage Engine Query
Counter NameAvg time/query
Frequency900
Alert GenerateFalse
RemotableTrue
CommentMom2008ID='{504858F9-B057-467C-AABD-D04ACC21522A}';MOM2008GroupID={467ECC75-C5DA-42BD-955C-A73BBB51AF74}

Member Modules:

ID Module Type TypeId RunAs 
_42EB9816_B297_415D_83DD_3DA1A903A3E5_ DataSource System.Performance.DataProvider Microsoft.SQLServer.SQLProbeAccount
PerfMapper ConditionDetection System.Performance.DataGenericMapper Default
CollectPerfData WriteAction Microsoft.SystemCenter.CollectPerformanceData Default
CollectPerfDataWarehouse WriteAction Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData Default

Source Code:

<Rule ID="Microsoft.SQLServer.2008.MSAS_2008_Query_Avg_time_query_15.0_minutes_5_Rule" Target="SQL2008Core!Microsoft.SQLServer.2008.AnalysisServices" Enabled="true" ConfirmDelivery="false" Comment="Mom2008ID='{504858F9-B057-467C-AABD-D04ACC21522A}';MOM2008GroupID={467ECC75-C5DA-42BD-955C-A73BBB51AF74}">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="_42EB9816_B297_415D_83DD_3DA1A903A3E5_" Comment="{42EB9816-B297-415D-83DD-3DA1A903A3E5}" TypeID="SystemPerf!System.Performance.DataProvider" RunAs="SQL!Microsoft.SQLServer.SQLProbeAccount">
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<CounterName>Avg time/query</CounterName>
<ObjectName>$Target/Property[Type="SQL!Microsoft.SQLServer.AnalysisServices"]/PerformanceCounterObject$:Storage Engine Query</ObjectName>
<Frequency>900</Frequency>
</DataSource>
</DataSources>
<ConditionDetection ID="PerfMapper" TypeID="SystemPerf!System.Performance.DataGenericMapper">
<ObjectName>SQL Analysis Services:Storage Engine Query</ObjectName>
<CounterName>$Data/CounterName$</CounterName>
<InstanceName>$Data/InstanceName$</InstanceName>
<Value>$Data/Value$</Value>
</ConditionDetection>
<WriteActions>
<WriteAction ID="CollectPerfData" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="CollectPerfDataWarehouse" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>