适用于:SQL Server
本文介绍了 Azure Arc 启用的 SQL Server 将向 Microsoft 传输的数据。 Specifically:
- 如本文和监视 Azure Arc 启用的 SQL Server 所述。Azure Arc 启用的 SQL Server 会收集使用情况数据。
- Azure 连接的计算机代理将此数据传输到
*.<region>.arcdataservices.com,如连接的计算机代理网络要求 - URL 中所述。
Azure Arc 启用的 SQL Server 不会收集任何个人身份信息 (PII) 或最终用户身份信息,也不会存储任何客户数据。
Related products
Azure Arc 启用的 SQL Server 使用以下产品:
- 已启用 Azure Arc 的服务器
Azure Arc 实例启用的 SQL Server
将为 Azure Arc 启用的 SQL Server 实例收集以下数据:
| Description | Property name | Property type |
|---|---|---|
| SQL Server 版本 | Edition |
string |
| 托管 Azure Arc for Servers 资源的资源 ID | 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 产品 ID | 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 | Property name | Property type |
|---|---|---|
| Database name | name |
string |
| Collation | collationName |
string |
| 数据库创建日期 | databaseCreationDate |
System.DateTime |
| Compatibility level | compatibilityLevel |
string |
| Database state | state |
string |
| Readonly mode | isReadOnly |
boolean |
| Recovery mode | recoveryMode |
boolean |
| 自动关闭已启用 | isAutoCloseOn |
boolean |
| 自动收缩已启用 | isAutoShrinkOn |
boolean |
| 自动创建统计信息已启用 | isAutoCreateStatsOn |
boolean |
| 自动更新统计信息已启用 | isAutoUpdateStatsOn |
boolean |
| 远程数据存档已启用 | isRemoteDataArchiveEnabled |
boolean |
| 内存优化已启用 | isMemoryOptimizationEnabled |
boolean |
| Encryption enabled | isEncrypted |
boolean |
| 可信模式已启用 | isTrustworthyOn |
boolean |
| Backup information | backupInformation |
object |
| Provisioning state | 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"
}
Extension logs
该扩展会向 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 操作延迟
- 总数据库大小和数据库文件组织
Monitoring data
代理会自动将 SQL Server 监视数据发送到 Azure。 可以禁用收集的监视数据。 请参阅监视已启用 Azure Arc 的 SQL Server(预览)。
以下列表反映了启用监视功能时从已启用 Azure Arc 的 SQL Server 上的 DMV 数据集收集的监视数据。 不会收集个人身份信息 (PII)、最终用户身份信息 (EUII) 或客户内容。
Active sessions
说明:正在运行请求、有阻止程序或有未完成事务的会话。
Dataset name:SqlServerActiveSessions
收集频率:每 30 秒一次
Collected fields:
connection_iddatabase_iddatabase_namemachine_namesample_time_utcsession_idsession_statussql_server_instance_name
CPU utilization
说明:一段时间内的 CPU 使用率。
Dataset name:SqlServerCPUUtilization
收集频率:每 10 秒一次
Collected fields:
avg_cpu_percentidle_cpu_percentmachine_nameother_process_cpu_percentprocess_sample_time_utcsample_time_utcsql_process_cpu_percentsql_server_instance_name
Database properties
说明:包括数据库选项及其他数据库元数据。
Dataset name:SqlServerDatabaseProperties
收集频率:每 5 分钟一次
Collected fields:
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
数据库存储利用率
说明:包括存储使用情况和持久版本存储。
Dataset name:SqlServerDatabaseStorageUtilization
收集频率:每 1 分钟一次
Collected fields:
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
Memory utilization
说明:内存分配器及其内存消耗。
Dataset name:SqlServerMemoryUtilization
收集频率:每 10 秒一次
Collected fields:
machine_namememory_size_mbmemory_clerk_namememory_clerk_typesample_time_utcsql_server_instance_name
性能计数器(常见)
说明:包括 SQL Server 记录的常见性能计数器。
Dataset name:SqlServerPerformanceCountersCommon
收集频率:每 1 分钟一次
Collected counters:
- Active Temp Tables
- Active Transactions
- Background writer pages/sec
- Batch Requests/sec
- Buffer cache hit ratio
- 缓存命中率
- Checkpoint pages/sec
- Errors/sec
- tempdb中的可用空间 (KB)
- 授予的工作区内存 (KB)
- Latch Waits/sec
- Lazy writes/sec
- 锁定内存 (KB)
- Locked page allocations (KB)
- Log Bytes Flushed/sec
- Log Flushes/sec
- Logical Connections
- Logins/sec
- Logouts/sec
- Number of Deadlocks/sec
- 操作系统可用的物理内存 (KB)
- 内存不足计数
- 页生存期
- Page reads/sec
- Page writes/sec
- 正在使用的进程物理内存 (KB)
- Process physical memory low
- Processes blocked
- Readahead pages/sec
- SQL Attention rate
- SQL Compilations/sec
- SQL Re-Compilations/sec
- 系统内存信号状态高
- 系统内存信号状态低
- 目标服务器内存 (KB)
- Temp Tables Creation Rate
- 服务器内存总量(KB)
- Transactions/sec
- User Connections
- Write Transactions/sec
性能计数器(详细信息)
说明:包括 SQL Server 记录的详细性能计数器。
Dataset name:SqlServerPerformanceCountersDetailed
收集频率:每 1 分钟一次
Collected counters:
- 平均等待时间(毫秒)
- Backup/Restore Throughput/sec
- 批量复制行数/秒
- 批量复制吞吐量/秒
- Cache Object Counts
- 连接内存(KB)
- 数据文件大小 (KB)
- Database pages
- Errors/sec
- Failed Auto-Params/sec
- Free list stalls/sec
- 大型页面分配 (KB)
- 本地节点页面查找数/秒
- 锁定超时(超时 > 0)/秒
- 日志文件大小 (KB)
- 日志文件已用大小 (KB)
- Log Flush Wait Time
- Log Growths
- Log Shrinks
- 优化器内存 (KB)
- Page lookups/sec
- 已用日志百分比
- 进程虚拟内存不足
- 远程节点页面查找次数/秒
- 减少每秒数据移动的字节数
- Temp Tables For Destruction
- 版本清理率 (KB/s)
- 版本生成速率 (KB/秒)
- 版本存储大小 (KB)
- XTP 已使用内存 (KB)
Storage I/O
说明:包括累积每秒输入/输出 (IOPS)、吞吐量和延迟统计信息。
Dataset name:SqlServerStorageIO
收集频率:每 10 秒一次
Collected fields:
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
Wait statistics
Note
目前无法在性能仪表板上可视化等待统计信息。
说明:包括数据库引擎实例的等待类型和等待统计信息。
Dataset name:SqlServerWaitStats
收集频率:每 10 秒一次
Collected fields:
machine_namemax_wait_time_msresource_wait_time_mssample_time_utcsignal_wait_time_mssql_server_instance_namewait_categorywait_time_mswait_typewaiting_tasks_count