SQL 2014 数据库活动会话性能收集规则
针对 SQL 2014 数据库的活动会话计数
活动会话度量指标显示外部客户端连接以及与数据库的内部系统连接的总和。如果此度量指标非常高,则连接的客户端可能存在性能问题,其他未连接客户端在访问数据库时可能会遇到问题。
可在 sys.dm_exec_sessions (Transact-SQL)文档下找到详细信息
http://go.microsoft.com/fwlink/?LinkId=799272
名称 | 说明 | 默认值 |
已启用 | 启用或禁用工作流。 | 是 |
间隔(秒) | 要运行工作流的重复时间间隔(秒)。 | 900 |
同步时间 | 使用 24 小时格式指定的同步时间。可以忽略。 | 00:14 |
超时(秒) | 指定允许工作流在被关闭并标记为失败之前运行的时间。 | 300 |
Target | Microsoft.SQLServer.2014.Database |
Category | PerformanceCollection |
Enabled | True |
Alert Generate | False |
Remotable | True |
ID | Module Type | TypeId | RunAs |
---|---|---|---|
DS | DataSource | Microsoft.SQLServer.2014.Database.ActiveSessions.DataSourceMapped | Microsoft.SQLServer.2014.SQLProbeAccount |
WriteToDB | WriteAction | Microsoft.SystemCenter.CollectPerformanceData | Default |
WriteToDW | WriteAction | Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData | Default |
<Rule ID="Microsoft.SQLServer.2014.Database.ActiveSessions.Collection" Enabled="true" Target="SQL2014Core!Microsoft.SQLServer.2014.Database">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="Microsoft.SQLServer.2014.Database.ActiveSessions.DataSourceMapped" RunAs="SQL2014Core!Microsoft.SQLServer.2014.SQLProbeAccount">
<IntervalSeconds>900</IntervalSeconds>
<TimeoutSeconds>300</TimeoutSeconds>
<SyncTime/>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>