MSSQL 2016: 未使用的資料庫已配置空間 (MB)

Microsoft.SQLServer.2016.Database.DBAllocatedFreeSpaceMB.Collection (Rule)

SQL 2016 未使用的資料庫已配置空間 (MB) 效能集合規則

Knowledge Base article:

摘要

SQL 2016 DB 未使用的配置空間 (MB)

可覆寫的參數

名稱

描述

預設值

Azure 檔案大小上限 (MB)

Azure BLOB 儲存體中所儲存的資料檔案大小上限。此工作流程會考慮將此值用做為每個檔案的儲存體容量上限。

1048576

已啟用

啟用或停用該工作流程。

間隔 (秒)

執行工作流程的週期性時間間隔 (秒)。

900

逾時 (秒)

指定允許工作流程在關閉且標示為失敗之前執行的時間。

300

Element properties:

TargetMicrosoft.SQLServer.2016.Database
CategoryPerformanceCollection
EnabledTrue
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.SQLServer.2016.Database.DBSizeRaw.DataSourceMapped Microsoft.SQLServer.MonitoringAccount
WriteToDB WriteAction Microsoft.SystemCenter.CollectPerformanceData Default
WriteToDW WriteAction Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData Default

Source Code:

<Rule ID="Microsoft.SQLServer.2016.Database.DBAllocatedFreeSpaceMB.Collection" Enabled="true" Target="SQL2016Core!Microsoft.SQLServer.2016.Database">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="Microsoft.SQLServer.2016.Database.DBSizeRaw.DataSourceMapped" RunAs="GPMP!Microsoft.SQLServer.MonitoringAccount">
<IntervalSeconds>900</IntervalSeconds>
<TimeoutSeconds>300</TimeoutSeconds>
<CounterName>DB Allocated Space Unused (MB)</CounterName>
<CounterKey>DBAllocatedFreeSpaceMB</CounterKey>
<AzureMaxFileSizeMB>1048576</AzureMaxFileSizeMB>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>