適用於:SQL Server
本文描述透過 Azure Arc 啟用的 SQL Server 傳輸至 Microsoft 的資料。 Specifically:
- 透過 Azure Arc 啟用的 SQL Server 收集使用方式資料,如本文以及監視透過 Azure Arc 啟用的 SQL Server 中所述。
- Azure Connected Machine 代理程式會將此資料傳輸至
*.<region>.arcdataservices.com,如連線機器代理程式網路需求 - URL 中所述。
透過 Azure Arc 啟用的 SQL Server 不會收集任何個人識別資訊 (PII) 或終端使用者識別資訊,或儲存任何客戶資料。
相關產品
透過 Azure Arc 啟用的 SQL Server 會使用下列產品:
- 已啟用 Azure Arc 的伺服器 (英文)
Azure Arc 執行個體啟用的 SQL Server
下列資料會收集至 Azure,供透過 Azure Arc 啟用的 SQL Server 使用:
| Description | 屬性名稱 | 屬性類型 |
|---|---|---|
| SQL Server 版本 | Edition |
string |
| 裝載 Azure Arc for Servers 資源的資源識別碼 | ContainerResourceId |
string |
| 建立資源的時間 | CreateTime |
string |
| SQL Server 執行個體所使用的邏輯處理器數目 | VCore |
string |
| 雲端連線狀態 | Status |
string |
| SQL Server 更新層級 | PatchLevel |
string |
| SQL Server 定序 | Collation |
string |
| SQL Server 目前的版本 | CurrentVersion |
string |
| SQL Server 執行個體名稱 | InstanceName |
string |
| SQL Server 使用的動態 TCP 通訊埠 | TcpDynamicPorts |
string |
| SQL Server 使用的靜態 TCP 通訊埠 | TcpStaticPorts |
string |
| SQL Server 產品識別碼 | ProductId |
string |
| SQL Server 佈建狀態 | ProvisioningState |
string |
下列 JSON 文件是 SQL Server - Azure Arc 資源的範例
{
"name": "<server name>",
"version": "SQL Server 2022",
"edition": "Enterprise",
"containerResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/arc-eastasia/providers/Microsoft.HybridCompute/machines/<server name>",
"vCore": "8",
"status": "Connected",
"patchLevel": "16.0.1000.6",
"collation": "SQL_Latin1_General_CP1_CI_AS",
"currentVersion": "16.0.1000.6",
"instanceName": "<instance name>",
"tcpDynamicPorts": "61394",
"tcpStaticPorts": "",
"productId": "00488-00010-05000-AB944",
"licenseType": "PAYG",
"azureDefenderStatusLastUpdated": "2023-02-08T07:57:37.5597421Z",
"azureDefenderStatus": "Protected",
"provisioningState": "Succeeded"
}
SQL Server 資料庫 - Azure Arc
| Description | 屬性名稱 | 屬性類型 |
|---|---|---|
| 資料庫名稱 | name |
string |
| Collation | collationName |
string |
| 資料庫建立日期 | databaseCreationDate |
System.DateTime |
| 相容性層級 | compatibilityLevel |
string |
| 資料庫狀態 | state |
string |
| 唯讀模式 | isReadOnly |
boolean |
| 復原模式 | recoveryMode |
boolean |
| 自動關閉已啟用 | isAutoCloseOn |
boolean |
| 自動壓縮已啟用 | isAutoShrinkOn |
boolean |
| 自動建立統計資料已啟用 | isAutoCreateStatsOn |
boolean |
| 自動更新統計資料已啟用 | isAutoUpdateStatsOn |
boolean |
| 遠端資料封存已啟用 | isRemoteDataArchiveEnabled |
boolean |
| 記憶體最佳化已啟用 | isMemoryOptimizationEnabled |
boolean |
| 已啟用加密 | isEncrypted |
boolean |
| 可信任模式已啟用 | isTrustworthyOn |
boolean |
| 備份資訊 | backupInformation |
object |
| 佈建狀態 | provisioningState |
string |
下列 JSON 文件是 SQL Server 資料庫 - Azure Arc 資源的範例。
{
"name": "newDb80",
"collationName": "SQL_Latin1_General_CP1_CI_AS",
"databaseCreationDate": "2023-01-09T03:40:45Z",
"compatibilityLevel": 150,
"state": "Online",
"isReadOnly": false,
"recoveryMode": "Full",
"databaseOptions": {
"isAutoCloseOn": false,
"isAutoShrinkOn": false,
"isAutoCreateStatsOn": true,
"isAutoUpdateStatsOn": true,
"isRemoteDataArchiveEnabled": false,
"isMemoryOptimizationEnabled": true,
"isEncrypted": false,
"isTrustworthyOn": false
},
"backupInformation": {},
"provisioningState": "Succeeded"
}
延伸模組記錄
此延伸模組會將關於延伸模組事件的記錄傳送至 Azure。
延伸模組記錄檔位於:
C:\ProgramData\GuestConfig\extension_logs\Microsoft.AzureData.WindowsAgent.SqlServer\
記錄檔名稱取決於適用於 SQL Server 的 Azure 延伸模組版本,針對最新版本的適用於 SQL Server 的 Azure 延伸模組,記錄檔為:
unifiedagent.log
針對延伸模組版本和更早版本 1.1.24724.69,記錄檔為:
ExtensionLog_0.log
移轉評定計量
移轉評定會自動產生移轉至 Azure 的評定。 如需詳細資訊,請參閱 使用移轉評定選取最佳 Azure SQL 目標 - Azure Arc 所啟用的 SQL Server。
- CPU 使用率 (%)
- 記憶體使用率 (%)
- 讀取 IO/秒和寫入 IO/秒 (資料和記錄檔)
- 讀取 MB/秒和寫入 MB/秒 (輸送量)
- IO 作業的延遲
- 總資料總大小和資料庫檔案組織
監視資料
代理程式會自動將 SQL Server 監視數據傳送至 Azure。 您可以停用收集的監視數據。 請參閱監視透過 Azure Arc 啟用的 SQL Server (預覽版)。
下列清單會反映啟用監視功能時,透過 Azure Arc 啟用的 SQL Server 上 DMV 資料集所收集的監視資料。 不會收集個人識別資訊 (PII)、終端使用者識別資訊 (EUII) 或客戶內容。
活動會話
描述:執行要求的工作階段具有封鎖程式,或具有開啟的交易。
資料集名稱:SqlServerActiveSessions
收集頻率:30 秒
收集的欄位:
connection_iddatabase_iddatabase_namemachine_namesample_time_utcsession_idsession_statussql_server_instance_name
CPU 使用率
描述:一段時間的 CPU 使用率。
資料集名稱:SqlServerCPUUtilization
收集頻率:10 秒
收集的欄位:
avg_cpu_percentidle_cpu_percentmachine_nameother_process_cpu_percentprocess_sample_time_utcsample_time_utcsql_process_cpu_percentsql_server_instance_name
資料庫屬性
描述:包含資料庫選項和其他資料庫中繼資料。
資料集名稱:SqlServerDatabaseProperties
收集頻率:5 分鐘
已收集的欄位:
collation_namecollection_time_utccompatibility_levelcontainment_desccount_suspect_pagescreate_datedatabase_iddatabase_namedelayed_durability_descforce_last_good_plan_actual_stateis_accelerated_database_recovery_onis_auto_create_stats_onis_auto_shrink_onis_auto_update_stats_async_onis_auto_update_stats_onis_broker_enabledis_cdc_enabledis_change_feed_enabledis_distributoris_encryptedis_in_standbyis_ledger_onis_merge_publishedis_parameterization_forcedis_primary_replicais_publishedis_read_committed_snapshot_onis_read_onlyis_subscribedlast_good_checkdb_timelog_reuse_wait_descmachine_namenotable_db_scoped_configspage_verify_option_descquery_store_actual_state_descquery_store_query_capture_mode_descrecovery_model_descsample_time_utcsnapshot_isolation_statesql_server_instance_namestate_descupdateabilityuser_access_desc
資料庫儲存體使用率
描述:包含儲存體使用量和持續版本存放區。
資料集名稱:SqlServerDatabaseStorageUtilization
收集頻率:1 分鐘
收集的欄位:
collection_time_utccount_data_filescount_log_filesdata_size_allocated_mbdata_size_used_mbdatabase_iddatabase_nameis_primary_replicalog_size_allocated_mblog_size_used_mbmachine_nameonline_index_version_store_size_mbpersistent_version_store_size_mbsample_time_utcsql_server_instance_name
記憶體使用率
描述:記憶體 Clerk 和 Clerk 的記憶體使用量。
資料集名稱:SqlServerMemoryUtilization
收集頻率:10 秒
收集的欄位:
machine_namememory_size_mbmemory_clerk_namememory_clerk_typesample_time_utcsql_server_instance_name
效能計數器 (通用)
描述:包含 SQL Server 記錄的通用效能計數器。
資料集名稱:SqlServerPerformanceCountersCommon
收集頻率:1 分鐘
收集的計數器:
- 啟動中的臨時資料表
- 活躍交易
- 背景寫入器頁/秒
- 批次要求/秒
- 緩衝區快取命中率
- 快取點擊率
- 檢查點頁數/秒
- Errors/sec
- 暫存資料庫中的空閒空間 (KB)
- 核准的工作區記憶體 (KB)
- 每秒閂鎖等待次數
- 延遲寫入/秒
- 鎖定記憶體 (KB)
- 鎖定的頁面配置 (KB)
- Log Bytes Received/sec
- 日誌刷新/秒
- 邏輯連接
- Logins/sec
- Logouts/sec
- 每秒死鎖數量
- OS 可用的實體記憶體 (KB)
- 記憶體不足計數
- 頁面壽命預期
- 頁面讀取/秒
- 頁面寫入/秒
- 處理使用中的實體記憶體 (KB)
- 處理實體記憶體不足
- 已封鎖的進程
- 預讀頁數/秒
- SQL 關注率
- SQL 編譯/秒
- SQL 重新編譯(每秒)
- 系統記憶體訊號狀態高
- 系統記憶體訊號狀態低
- 目標伺服器記憶體 (KB)
- 臨時資料表創建率
- 伺服器記憶體總計 (KB)
- Transactions/sec
- 使用者連線
- 每秒寫入交易數
效能計數器 (詳細)
描述:包含 SQL Server 記錄的詳細效能計數器。
資料集名稱:SqlServerPerformanceCountersDetailed
收集頻率:1 分鐘
收集的計數器:
- 平均等待時間(毫秒)
- 備份/還原吞吐量/秒
- 大量複製行數/秒
- 批量複製吞吐量/秒 (Bulk Copy Throughput/sec)
- 快取物件計數
- 連線記憶體(KB)
- 資料檔案大小 (KB)
- 資料庫頁面
- Errors/sec
- 失敗的自動參數/秒
- 自由列表停止次數/秒
- 大型頁面配置 (KB)
- Local Node page lookups/sec
- 鎖定逾時 (timeout > 0)/秒
- 記錄檔大小 (KB)
- 記錄檔已用大小 (KB)
- 日誌刷新等待時間
- 日誌增長
- 日誌縮小
- 優化器記憶體 (Optimizer Memory) (KB)
- 頁面查找/秒
- 使用百分比日志
- 處理虛擬記憶體不足
- 遠端節點頁面查詢次數/秒
- 縮小資料移動位元組/秒
- 要摧毀的臨時資料表
- 版本清理速率 (KB/s)
- 版本生成速率 (KB/s)
- 版本存儲大小(KB)
- XTP 記憶體使用量 (KB)
儲存體輸入/輸出
描述:包含每秒累積輸入/輸出 (IOPS)、輸送量和延遲統計資料。
資料集名稱:SqlServerStorageIO
收集頻率:10 秒
收集的欄位:
database_iddatabase_namefile_idfile_max_size_mbfile_size_mbfile_typeio_stall_queued_read_msio_stall_queued_write_msio_stall_read_msio_stall_write_msmachine_namenum_of_bytes_readnum_of_bytes_writtennum_of_readsnum_of_writessample_time_utcsize_on_disk_bytessql_server_instance_name
等待統計資料
Note
目前無法在效能儀表板視覺化等待統計資料。
描述:包含資料庫引擎執行個體的等候類型和等候統計資料。
資料集名稱:SqlServerWaitStats
收集頻率:10 秒
收集的欄位:
machine_namemax_wait_time_msresource_wait_time_mssample_time_utcsignal_wait_time_mssql_server_instance_namewait_categorywait_time_mswait_typewaiting_tasks_count