你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

已启用 Azure Arc 的数据服务数据收集和报告

本文介绍了已启用 Azure Arc 的数据服务向 Microsoft 传输的数据。

已启用 Azure Arc 的数据服务和任何适用的数据服务都不存储任何客户数据。 这适用于:

  • Azure Arc 启用的 SQL 托管实例
  • 已启用 Azure Arc 的 PostgreSQL

已启用 Azure Arc 的数据服务

已启用 Azure Arc 的数据服务可能使用以下部分或所有产品:

直接连接

将群集配置为直接连接到 Azure 时,某些数据会自动传输到 Microsoft。

下表描述了数据的类型、发送方式和要求。

数据类别 发送哪些数据? 如何发送? 是否必需发送?
操作数据 指标和日志 自动(如果配置为这样做)
计费和清单数据 清单(如实例数)和使用情况(如使用的 vCore 数) 自动
诊断 用于故障排除的诊断信息 手动导出并提供给 Microsoft 支持部门 仅适用于故障排除范围并遵循标准隐私政策

间接连接

当群集未配置为直接连接到 Azure 时,它不会自动将操作数据或计费和清单数据传输给 Microsoft。 若要将数据传输到 Microsoft,需要配置导出。

下表描述了数据的类型、发送方式和要求。

数据类别 发送哪些数据? 如何发送? 是否必需发送?
操作数据 指标和日志 手动
计费和清单数据 清单(如实例数)和使用情况(如使用的 vCore 数) 手动
诊断 用于故障排除的诊断信息 手动导出并提供给 Microsoft 支持部门 仅适用于故障排除范围并遵循标准隐私政策

运营数据

系统针对所有数据库实例和已启用 Azure Arc 的数据服务平台本身收集操作数据。 有两种类型的操作数据:

  • 指标 - 与性能和容量相关的指标,收集到已启用 Azure Arc 的数据服务中提供的 Influx DB。 可以在提供的 Grafana 仪表板中查看这些指标。

  • 日志 - 所有组件发出记录(包括故障、警告和信息性事件)将收集到已启用 Azure Arc 的数据服务中提供的 OpenSearch 数据库。 可以在提供的 Kibana 仪表板中查看日志。 在 2023 年 5 月版本之前,日志数据库使用了 Elasticsearch。 此后,它使用 OpenSearch。

需要内置管理权限才能在 Grafana/Kibana 中查看本地存储的操作数据。

操作数据不会离开你的环境,除非选择将数据导出/上传(间接连接模式)或自动发送(直接连接模式)到 Azure Monitor/Log Analytics。 数据将进入你控制的 Log Analytics 工作区。

如果将数据发送到 Azure Monitor 或 Log Analytics,则可以选择 Log Analytics 工作区要位于哪个 Azure 区域或数据中心。 之后你即可控制从其他位置查看或复制该工作区的权限。

清单数据

收集的清单数据由多个 Azure 资源类型表示。 以下部分显示了为每个资源类型收集的属性、类型和说明:

每个数据库实例和数据控制器本身将作为 Azure 资源管理器中的 Azure 资源反映在 Azure 中。

有三种资源类型:

  • Azure Arc 启用的 SQL 托管实例
  • 已启用 Azure Arc 的 PostgreSQL 服务器
  • 数据控制器

以下部分显示了针对每种资源类型收集和存储的属性、类型和说明:

SQL Server - Azure Arc

说明 属性名称 属性类型
计算机名称 name string
SQL Server 实例名称 INSTANCENAME string
SQL Server 版本 版本 string
SQL Server 发行版 edition string
包含服务器资源 ID containerResourceId string
虚拟核心 vCore string
连接状态 状态 string
SQL Server 修补程序级别 patchLevel string
排序规则 collation string
当前版本 currentVersion string
TCP 动态端口 tcpDynamicPorts string
TCP 静态端口 tcpStaticPorts string
产品 ID productId string
许可证类型 LicenseType string
Microsoft Defender 状态 azureDefenderStatus string
Microsoft Defender 状态上次更新时间 azureDefenderStatusLastUpdated string
正在设置状态 provisioningState string

以下 JSON 文档是 SQL Server - Azure Arc 资源的示例。

{
  
    "name": "SQL22-EE_PAYGTEST",
    "version": "SQL Server 2022",
    "edition": "Enterprise",
    "containerResourceId": "/subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/resourcegroups/sashan-arc-eastasia/providers/Microsoft.HybridCompute/machines/SQL22-EE",
    "vCore": "8",
    "status": "Connected",
    "patchLevel": "16.0.1000.6",
    "collation": "SQL_Latin1_General_CP1_CI_AS",
    "currentVersion": "16.0.1000.6",
    "instanceName": "PAYGTEST",
    "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

说明 属性名称 属性类型
数据库名称 name string
排序规则 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
正在设置状态 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 Arc 数据控制器

说明 属性名称 属性类型
位置信息 OnPremiseProperty public: OnPremiseProperty
原始 Kubernetes 信息 (kubectl get datacontroller) K8sRaw object
上次从本地群集上传的日期 LastUploadedDate System.DateTime
数据控制器状态 ProvisioningState string

以下 JSON 文档是 Azure Arc 数据控制器资源的示例。

{
    "id": "/subscriptions/bbbb1b1b-cc2c-dd3d-ee4e-ffffff5f5f5f/resourceGroups/contoso-rg/providers/Microsoft.AzureArcData/dataControllers/contosodc",
    "name": "contosodc",
    "type": "microsoft.azurearcdata/datacontrollers",
    "location": "eastus",
    "extendedLocation": {
        "name": "/subscriptions/bbbb1b1b-cc2c-dd3d-ee4e-ffffff5f5f5f/resourceGroups/contoso-rg/providers/Microsoft.ExtendedLocation/customLocations/contoso",
        "type": "CustomLocation"
    },
    "tags": {},
    "systemData": {
        "createdBy": "contosouser@contoso.com",
        "createdByType": "User",
        "createdAt": "2023-01-03T21:35:36.8412132Z",
        "lastModifiedBy": "319f651f-7ddb-4fc6-9857-7aef9250bd05",
        "lastModifiedByType": "Application",
        "lastModifiedAt": "2023-02-15T17:13:26.6429039Z"
    },
    "properties": {
        "infrastructure": "azure",
        "onPremiseProperty": {
            "id": "4eb0a7a5-5ed6-4463-af71-12590b2fad5d",
            "publicSigningKey": "MIIDWzCCAkOgAwIBAgIIA8OmTJKpD8AwDQYJKoZIhvcNAQELBQAwKDEmMCQGA1UEAxMdQ2x1c3RlciBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkwHhcNMjMwMTAzMjEzNzUxWhcNMjgwMTAyMjEzNzUxWjAaMRgwFgYDVQQDEw9iaWxsaW5nLXNpZ25pbmcwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC3rAuXaXIeaipFiqGW5rtkdq/1+S58CRMEkANHvwFnimXEWIt8VnbG9foIm20r0RK+6XeRpn5r92jrOl/3R4Q9AAiF3Tgzy3NF9Dg9OsKo1bnrfWHMxmyX2w8TxyZSvWKEUVpVhjhqyhy/cqSJA5ASjEtthMx4Q1HTVcEDSTfnPHPz9EhfZqZ6ES3Yqun2D9MIatkSUpjHJbqYwRTzzrsPG84hJX7EGAWntvEzzCjmTUsouShEwUhi8c05CLBwzF5bxDNLhTdy+tj2ZyUzL7R+BmifwPR9jvOziYPlrbgIIs77sPbNlZjZvMeeBaJHktWZ0s8/UpUpV1W69m7hT2gbAgMBAAGjgZYwgZMwIAYDVR0lAQH/BBYwFAYIKwYBBQUHAwIGCCsGAQUFBwMBMA4GA1UdDwEB/wQEAwIFoDBfBgNVHREEWDBWgg5jb250cm9sbGVyLXN2Y4IoY29udHJvbGxlci1zdmMuY29udG9zby5zdmMuY2x1c3Rlci5sb2NhbIIaY29udHJvbGxlci1zdmMuY29udG9zby5zdmMwDQYJKoZIhvcNAQELBQADggEBADcZNIZcDDUC79ElbRrXdbHo9bUUv/NJfY7Dx226jc8j0AdDq8MbHAnt+JiMH6+GDb88avleA448yZ9ujBP9zC8v8IyaWu4vQpPT7MagzlsAhb6VEWU0FQfM6R14WwbATWSOIwDlMn4I33mZULyJdZhk4TqzqTQ8F0I3TavHh8TWBbjnwg1IhR/8TQ9HfgceoI80SBE3BDI5at/CzYgoWcWS2pzfd3QYwD8DIPVLCdcx1LNSDjdlQCQTKal0yKMauGIzMuYpCF1M6Z0LunPU/Ns96T9mqLXJHu+wmAoJ2CwdXa4FruwTSgrQlY3pokjTMwGaP3uzpnCSI7ykvi5kp4Q=",
            "signingCertificateThumbprint": "8FB48D0DD44DCFB25ECC13B9CB5F493F5438D38C"
        },
        "k8sRaw": {
            "kind": "DataController",
            "spec": {
                "credentials": {
                    "dockerRegistry": "arc-private-registry",
                    "domainServiceAccount": "domain-service-account-secret",
                    "serviceAccount": "sa-arc-controller"
                },
                "security": {
                    "allowDumps": true,
                    "allowNodeMetricsCollection": true,
                    "allowPodMetricsCollection": true
                },
                "services": [
                    {
                        "name": "controller",
                        "port": 30080,
                        "serviceType": "LoadBalancer"
                    }
                ],
                "settings": {
                    "ElasticSearch": {
                        "vm.max_map_count": "-1"
                    },
                    "azure": {
                        "autoUploadMetrics": "true",
                        "autoUploadLogs": "false",
                        "subscription": "bbbb1b1b-cc2c-dd3d-ee4e-ffffff5f5f5f",
                        "resourceGroup": "contoso-rg",
                        "location": "eastus",
                        "connectionMode": "direct"
                    },
                    "controller": {
                        "logs.rotation.days": "7",
                        "logs.rotation.size": "5000",
                        "displayName": "contosodc"
                    }
                },
                "storage": {
                    "data": {
                        "accessMode": "ReadWriteOnce",
                        "className": "managed-premium",
                        "size": "15Gi"
                    },
                    "logs": {
                        "accessMode": "ReadWriteOnce",
                        "className": "managed-premium",
                        "size": "10Gi"
                    }
                },
                "infrastructure": "azure",
                "docker": {
                    "registry": "mcr.microsoft.com",
                    "imageTag": "v1.14.0_2022-12-13",
                    "repository": "arcdata",
                    "imagePullPolicy": "Always"
                }
            },
            "metadata": {
                "namespace": "contoso",
                "name": "contosodc",
                "annotations": {
                    "management.azure.com/apiVersion": "2022-03-01-preview",
                    "management.azure.com/cloudEnvironment": "AzureCloud",
                    "management.azure.com/correlationId": "aaaa0000-bb11-2222-33cc-444444dddddd",
                    "management.azure.com/customLocation": "/subscriptions/bbbb1b1b-cc2c-dd3d-ee4e-ffffff5f5f5f/resourceGroups/contoso-rg/providers/Microsoft.ExtendedLocation/customLocations/contoso",
                    "management.azure.com/location": "eastus",
                    "management.azure.com/operationId": "265b98a7-0fc2-4dce-9cef-26f9b6dd000c*705EDFCA81D01028EFA1C3E9CB3CEC2BF472F25894ACB2FFDF955711236F486D",
                    "management.azure.com/resourceId": "/subscriptions/bbbb1b1b-cc2c-dd3d-ee4e-ffffff5f5f5f/resourceGroups/contoso-rg/providers/Microsoft.AzureArcData/dataControllers/contosodc",
                    "management.azure.com/systemData": "{\"createdBy\":\"9c1a17be-338f-4b3c-90e9-55eb526c5aef\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-03T21:35:36.8412132Z\",\"resourceUID\":\"74087467-4f98-4a23-bacf-a1e40404457f\"}",
                    "management.azure.com/tenantId": "aaaabbbb-0000-cccc-1111-dddd2222eeee",
                    "traceparent": "00-197d885376f938d6138babf8ed4d809c-1a584b84b3c8f5df-01"
                },
                "creationTimestamp": "2023-01-03T21:35:42Z",
                "generation": 2,
                "resourceVersion": "15446366",
                "uid": "4eb0a7a5-5ed6-4463-af71-12590b2fad5d"
            },
            "apiVersion": "arcdata.microsoft.com/v5",
            "status": {
                "observedGeneration": 2,
                "state": "Ready",
                "azure": {
                    "uploadStatus": {
                        "logs": {
                            "lastUploadTime": "0001-01-01T00:00:00Z",
                            "message": "Automatic upload of logs is disabled. Execution time: 02/15/2023 17:07:57"
                        },
                        "metrics": {
                            "lastUploadTime": "2023-02-15T17:00:57.047934Z",
                            "message": "Success"
                        },
                        "usage": {
                            "lastUploadTime": "2023-02-15T17:07:53.843439Z",
                            "message": "Success. Records uploaded: 1."
                        }
                    }
                },
                "lastUpdateTime": "2023-02-15T17:07:57.587925Z",
                "runningVersion": "v1.14.0_2022-12-13",
                "arcDataServicesK8sExtensionLatestVersion": "v1.16.0",
                "registryVersions": {
                    "available": [
                        "v1.16.0_2023-02-14",
                        "v1.15.0_2023-01-10"
                    ],
                    "behind": 2,
                    "current": "v1.14.0_2022-12-13",
                    "latest": "v1.16.0_2023-02-14",
                    "next": "v1.15.0_2023-01-10",
                    "previous": "v1.13.0_2022-11-08"
                }
            }
        },
        "provisioningState": "Succeeded"
    }
}

PostgreSQL 服务器 - Azure Arc

说明 属性名称 属性类型
数据控制器 ID DataControllerId string
实例管理员名称 管理员 string
基本身份验证的用户名和密码 BasicLoginInformation public: BasicLoginInformation
原始 Kubernetes 信息 (kubectl get postgres12) K8sRaw object
上次从本地群集上传的日期 LastUploadedDate System.DateTime
组预配状态 ProvisioningState string

SQL 托管实例 - Azure Arc

说明 属性名称 属性类型
托管实例 ID DataControllerId string
实例管理员用户名 管理员 string
实例开始时间 StartTime string
实例结束时间 EndTime string
原始 Kubernetes 信息 (kubectl get sqlmi) K8sRaw object
基本身份验证的用户名和密码 BasicLoginInformation BasicLoginInformation
上次从本地群集上传的日期 LastUploadedDate System.DateTime
SQL 托管实例预配状态 ProvisioningState string

以下 JSON 文档是 SQL 托管实例 - Azure Arc 资源的示例。


{
    "id": "/subscriptions/bbbb1b1b-cc2c-dd3d-ee4e-ffffff5f5f5f/resourceGroups/contoso-rg/providers/Microsoft.AzureArcData/sqlManagedInstances/sqlmi1",
    "name": "sqlmi1",
    "type": "microsoft.azurearcdata/sqlmanagedinstances",
    "sku": {
        "name": "vCore",
        "tier": "BusinessCritical"
    },
    "location": "eastus",
    "extendedLocation": {
        "name": "/subscriptions/bbbb1b1b-cc2c-dd3d-ee4e-ffffff5f5f5f/resourcegroups/contoso-rg/providers/microsoft.extendedlocation/customlocations/contoso",
        "type": "CustomLocation"
    },
    "tags": {},
    "systemData": {
        "createdBy": "contosouser@contoso.com",
        "createdByType": "User",
        "createdAt": "2023-01-04T01:33:57.5232885Z",
        "lastModifiedBy": "319f651f-7ddb-4fc6-9857-7aef9250bd05",
        "lastModifiedByType": "Application",
        "lastModifiedAt": "2023-02-15T01:39:11.6582399Z"
    },
    "properties": {
        "dataControllerId": "/subscriptions/bbbb1b1b-cc2c-dd3d-ee4e-ffffff5f5f5f/resourceGroups/contoso-rg/providers/Microsoft.AzureArcData/dataControllers/contosodc",
        "admin": "sqladmin",
        "k8sRaw": {
            "spec": {
                "scheduling": {
                    "default": {
                        "resources": {
                            "requests": {
                                "cpu": "2",
                                "memory": "4Gi"
                            },
                            "limits": {
                                "cpu": "2",
                                "memory": "4Gi"
                            }
                        }
                    }
                },
                "replicas": 2,
                "dev": true,
                "services": {
                    "primary": {
                        "type": "LoadBalancer"
                    },
                    "readableSecondaries": {}
                },
                "readableSecondaries": 1,
                "syncSecondaryToCommit": 0,
                "storage": {
                    "data": {
                        "volumes": [
                            {
                                "size": "5Gi"
                            }
                        ]
                    },
                    "logs": {
                        "volumes": [
                            {
                                "size": "5Gi"
                            }
                        ]
                    },
                    "datalogs": {
                        "volumes": [
                            {
                                "size": "5Gi"
                            }
                        ]
                    },
                    "backups": {
                        "volumes": [
                            {
                                "className": "azurefile",
                                "size": "5Gi"
                            }
                        ]
                    }
                },
                "security": {
                    "adminLoginSecret": "sqlmi1-login-secret"
                },
                "tier": "BusinessCritical",
                "update": {},
                "backup": {
                    "retentionPeriodInDays": 7
                },
                "licenseType": "LicenseIncluded",
                "orchestratorReplicas": 1,
                "parentResource": {
                    "apiGroup": "arcdata.microsoft.com",
                    "kind": "DataController",
                    "name": "contosodc",
                    "namespace": "contoso"
                },
                "settings": {
                    "collation": "SQL_Latin1_General_CP1_CI_AS",
                    "language": {
                        "lcid": 1033
                    },
                    "network": {
                        "forceencryption": 0,
                        "tlsciphers": "ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384",
                        "tlsprotocols": "1.2"
                    },
                    "sqlagent": {
                        "enabled": false
                    },
                    "timezone": "UTC"
                }
            },
            "metadata": {
                "annotations": {
                    "management.azure.com/apiVersion": "2022-03-01-preview",
                    "management.azure.com/cloudEnvironment": "AzureCloud",
                    "management.azure.com/correlationId": "bbbb1111-cc22-3333-44dd-555555eeeeee",
                    "management.azure.com/customLocation": "/subscriptions/bbbb1b1b-cc2c-dd3d-ee4e-ffffff5f5f5f/resourceGroups/contoso-rg/providers/microsoft.extendedlocation/customlocations/contoso",
                    "management.azure.com/location": "eastus",
                    "management.azure.com/operationId": "dbf2e708-78da-4762-8fd5-75ba43721b24*4C234309E6735F28E751F5734D64E8F98A910A88E54A1AD35C6469BCD0E6EA84",
                    "management.azure.com/resourceId": "/subscriptions/bbbb1b1b-cc2c-dd3d-ee4e-ffffff5f5f5f/resourceGroups/contoso-rg/providers/Microsoft.AzureArcData/sqlManagedInstances/sqlmi1",
                    "management.azure.com/systemData": "{\"createdBy\":\"9c1a17be-338f-4b3c-90e9-55eb526c5aef\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-04T01:33:57.5232885Z\",\"resourceUID\":\"40fa8b55-4b7d-4d6a-b783-043169d7fd03\"}",
                    "management.azure.com/tenantId": "aaaabbbb-0000-cccc-1111-dddd2222eeee",
                    "traceparent": "00-3c07cf4caa8b4778591b02b1bf3979ef-f2ee2c890c21ea8a-01"
                },
                "creationTimestamp": "2023-01-04T01:34:03Z",
                "generation": 1,
                "labels": {
                    "management.azure.com/resourceProvider": "Microsoft.AzureArcData"
                },
                "name": "sqlmi1",
                "namespace": "contoso",
                "resourceVersion": "15215035",
                "uid": "6d653cd8-f17e-437a-b0dc-48154164c1ad"
            },
            "status": {
                "lastUpdateTime": "2023-02-15T01:39:07.691211Z",
                "observedGeneration": 1,
                "readyReplicas": "2/2",
                "roles": {
                    "sql": {
                        "replicas": 2,
                        "lastUpdateTime": "2023-02-14T11:37:14.875705Z",
                        "readyReplicas": 2
                    }
                },
                "state": "Ready",
                "endpoints": {
                    "logSearchDashboard": "https://230.41.13.18:5601/app/kibana#/discover?_a=(query:(language:kuery,query:'custom_resource_name:sqlmi1'))",
                    "metricsDashboard": "https://230.41.13.18:3000/d/40q72HnGk/sql-managed-instance-metrics?var-hostname=sqlmi1-0",
                    "mirroring": "230.41.13.18:5022",
                    "primary": "230.41.13.18,1433",
                    "secondary": "230.41.13.18,1433"
                },
                "highAvailability": {
                    "lastUpdateTime": "2023-02-14T11:47:42.208708Z",
                    "mirroringCertificate": "-----BEGIN CERTIFICATE-----\nMIIDQzCCAiugAwIBAgIISqqmfCPaolkwDQYJKoZIhvcNAQELBQAwKDEmMCQGA1UEAxMdQ2x1c3Rl\r\nciBDZXJ0aWZpDEzNDA2WhcNMjgwMTAzMDEzNDA2WjAO\r\nMQwwCgYDVQQDEwNkYm0wggEiMA0GCSqgEKAoIBAQDEXj2nm2cGkyfu\r\npXWQ4s6G//AI1rbH4JStZOAHwJNYmBuESSHz0i6znjnQQloFe+g2KM+1m4TN1T39Lz+/ufEYQQX9\r\nx9WuGP2IALgH1LXc/0DGuOB16QXqN7ZWULQ4ovW4Aaz5NxTSDXWYPK+zpb1c8adsQyamLHwmSPs4\r\nMpsgfOR9EUCqdnuKjSHbWCtkJTYogpAFyZb5HOgY1TMICrTkXG6VYoCPS/EDNmtPOyVuykdjjsxx\r\nIC5KkVgHWTaYIDjim7L44FPh4HUIVM/OFScRijCZTJogN/Fe94+kGDWfgWIG36Jlz127BbWV3HNJ\r\nkH2oLchIABvgTXsdKnjK3i2TAgMBAAGjgYowgYcwIAYDVR0lAQH/BBYwFAYIKwYBBQUHAwIGCCsG\r\nAQUFBwMBMA4GA1UdDwEB/wQEAwIFoDBTBgNVHREETDBKggpzcWxtaTEtc3ZjgiRzcWxtaTEtc3Zj\r\nLmNvbnRvc28uc3ZjLmNsdXN0ZXIubG9jYWyCFnNxbG1pMS1zdmMuY29udG9zby5zdmMwDQYJKoZI\r\nhvcNAQELBQADggEBAA+Wj6WK9NgX4szxT7zQxPVIn+0iviO/2dFxHmjmvj+lrAffsgNdfeX5095f\r\natxIO+no6VW2eoHze2f6AECh4/KefyAzd+GL9MIksJcMLqSqAemXju3pUfGBS1SAW8Rh361D8tmA\r\nEFpPMwZG3uMidYMso0GqO0tpejz2+5Q4NpweHBGoq6jk+9ApTLD+s5qetZHrxGD6tS1Z/Lvt24lE\r\nKtSKEDw5O2qnqbsOe6xxtPAuIfTmpwIzIv2WiGC3aGuXSr0bNyPHzh5RL1MCIpwLMrnruFwVzB25\r\nA0xRalcXVZRZ1H0zbznGsecyBRJiA+7uxNB7/V6i+SjB/qxj2xKh4s8=\n-----END CERTIFICATE-----\n",
                    "healthState": "Error",
                    "replicas": []
                },
                "logSearchDashboard": "https://230.41.13.18:5601/app/kibana#/discover?_a=(query:(language:kuery,query:'custom_resource_name:sqlmi1'))",
                "metricsDashboard": "https://230.41.13.18:3000/d/40q72HnGk/sql-managed-instance-metrics?var-hostname=sqlmi1-0",
                "primaryEndpoint": "230.41.13.18,1433",
                "runningVersion": "v1.14.0_2022-12-13",
                "registryVersions": {
                    "available": [],
                    "behind": 0,
                    "current": "v1.14.0_2022-12-13",
                    "latest": "v1.14.0_2022-12-13",
                    "previous": "v1.13.0_2022-11-08"
                }
            }
        },
        "provisioningState": "Succeeded",
        "licenseType": "LicenseIncluded"
    }
}

示例

发送到 Azure 的资源清单数据 JSON 文档的示例,用于在订阅中创建 Azure 资源。

{ 

        "customObjectName": "<resource type>-2020-29-5-23-13-17-164711", 
        "uid": "4bc3dc6b-9148-4c7a-b7dc-01afc1ef5373", 
        "instanceName": "sqlInstance001", 
        "instanceNamespace": "arc", 
        "instanceType": "<resource>", 
        "location": "eastus", 
        "resourceGroupName": "production-resources", 
        "subscriptionId": "<subscription_id>", 
        "isDeleted": false, 
        "externalEndpoint": "32.191.39.83:1433", 
        "vCores": "2", 
        "createTimestamp": "05/29/2020 23:13:17", 
        "updateTimestamp": "05/29/2020 23:13:17" 
    } 

账单数据

计费数据用于跟踪可计费的使用情况。 此数据对于运行服务至关重要,需要在所有模式下以手动或自动方式进行传输。

已启用 Arc 的数据服务

计费数据捕获给定实例的开始时间(“创建时间”)和结束时间(“删除时间”),还捕获每当给定实例的可用核心数(“核心限制”)发生变化时的任何开始时间。

{ 
    "requestType": "usageUpload", 
    "clusterId": "4b0917dd-e003-480e-ae74-1a8bb5e36b5d", 
    "name": "DataControllerTestName", 
    "subscriptionId": "<subscription_id>", 
    "resourceGroup": "production-resources", 
    "location": "eastus", 
    "uploadRequest": { 
    "exportType": "usages", 
    "dataTimestamp": "2020-06-17T22:32:24Z", 
    "data": 
        "[{\"name\":\"sqlInstance001\", 
        \"namespace\":\"arc\", 
        \"type\":\"<resource type>\", 
        \"eventSequence\":1,  
        \"eventId\":\"50DF90E8-FC2C-4BBF-B245-CB20DC97FF24\", 
        \"startTime\":\"2020-06-17T19:11:47.7533333\", 
        \"endTime\":\"2020-06-17T19:59:00\", 
        \"quantity\":1, 
        \"id\":\"<subscription_id>\"}]", 
        "signature":"MIIE7gYJKoZIhvcNAQ...2xXqkK" 

已启用 Arc 的 SQL Server

计费数据捕获 SQL Server 实例属性的快照,以及每小时的计算机属性,并撰写使用情况上传有效负载以报告使用情况。 每个 SQL Server 实例的有效负载中有快照时间。 

{
    "hostType": "Unknown",
    "osType": "Windows",
    "manufacturer": "Microsoft",
    "model": "Hyper-V",
    "isVirtualMachine": true,
    "serverName": "TestArcServer",
    "serverId": "<server id>",
    "location": "eastus",
    "timestamp": "2021-07-08T01:42:15.0388467Z",
    "uploadRequest": {
        "exportType": "usages",
        "dataTimestamp": "2020-06-17T22:32:24Z",
        "data": 
            "[{\"hostType\":\"VirtualMachine\",
            \"numberOfCores\":4,
            \"numberOfProcessors\":1,
            \"numberOfLogicalProcessors\":4,
            \"subscriptionId\":\"<subscription id>\",\"resourceGroup\":\"ArceeBillingPipelineStorage_Test\",
            \"location\":\"eastus2euap\",
            \"version\":\"Sql2019\",
            \"edition\":\"Enterprise\",
            \"editionOriginalString\":\"Enterprise Edition: Core based licensing\",
            \"coreInfoOriginalString\":\"using 16 logical processors based on SQL Server licensing\",
            \"vCore\":4,
            \"instanceName\":\"INSTANCE01\",
            \"licenseType\":\"LicenseOnly\",
            \"hostLicenseType\":\"Paid\",
            \"instanceLicenseType\":\"Paid\",
            \"serverName\":\"TestArcServer\",
            \"isRunning\":false,
            \"eventId\":\"00000000-0000-0000-0000-000000000000\",
            \"snapshotTime\":\"2020-06-17T19:59:00\",
            \"isAzureBilled\":\"Enabled\",
            \"hasSoftwareAssurance\":\"Undefined\"}]"
    }
}

诊断数据

在寻求支持的情况下,可能需要提供数据库实例日志、Kubernetes 日志和其他诊断日志。 支持团队将提供安全的上传位置。 动态管理视图 (DMV) 也可能提供诊断数据。 使用的 DMV 或查询可能包含数据库架构元数据详细信息,但通常不包含客户数据。 诊断数据不包含任何密码、群集 IP 或个人身份数据。 系统将清理这些信息,并且会尽可能匿名存储日志。 这些内容不会自动传输,管理员必须手动上传。

字段名称 说明
错误日志 捕获错误的日志文件可能包含客户或个人数据(如下所示),这些内容受限制并由用户共享
DMV 动态管理视图可能包含查询和查询计划,但这些内容受限制并由用户共享
视图 视图可能包含客户数据,但这些内容受限制并仅可由用户共享
故障转储 - 客户数据 故障转储可能包含访问控制数据,最多可保留 30 天

客户故障转储中可能包含统计信息对象、行内的数据值和查询文本
故障转储 - 个人数据 计算机、登录名/用户名、电子邮件、位置信息、客户标识 - 需要用户同意才可包含这些信息

将使用情况数据上传到 Azure Monitor