您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

度量要在 Internet 分析器测试中评估的自定义终结点Measure custom endpoints to evaluate in your Internet Analyzer tests

本文演示如何设置要在 Internet 分析器测试中进行度量的自定义终结点。This article demonstrates how to set up a custom endpoint to measure as part of your Internet Analyzer tests. 自定义终结点可帮助评估本地工作负荷、在其他云提供商上运行的工作负荷以及自定义 Azure 配置。Custom endpoints help evaluate on-premises workloads, workloads running on other cloud providers, and custom Azure configurations. 如果一个终结点是 Azure 资源,则可以在一个测试中比较两个自定义终结点。Comparing two custom endpoints in one test is possible if one endpoint is an Azure resource. 有关 Internet 分析器的详细信息,请参阅概述For more information on Internet Analyzer, see the overview.

重要

此公共预览版在提供时没有附带服务级别协议,不应用于生产工作负荷。This public preview is provided without a service level agreement and should not be used for production workloads. 某些功能可能不受支持或受到约束,或者不一定在所有 Azure 位置都可用。Certain features may not be supported, may have constrained capabilities, or may not be available in all Azure locations. 有关详细信息,请参阅 Microsoft Azure 预览版补充使用条款See the Supplemental Terms of Use for Microsoft Azure Previews for details.

开始之前Before you begin

请确保设置 Internet 分析器资源,并选择“自定义终结点”选项。Make sure you set up an Internet Analyzer resource and select the "Custom Endpoint" option. Internet 分析器假设自定义终结点可以访问 Internet。Internet Analyzer assumes your custom endpoint is Internet accessible. 有关详细信息,请参阅创建 Internet 分析器资源For more information, see Create an Internet Analyzer Resource.

创建自定义终结点Create Custom Endpoint

  1. 在此处下载透明的单像素测试图像。Download a transparent one-pixel test image here. 这一单像素图像是客户端 JavaScript 为衡量性能而提取的资产。This one-pixel image is the asset the client JavaScript will fetch to measure performance.
  2. 在自定义 Web 应用程序中,部署可公开访问的路径中的测试图像。In your custom web application, deploy the test image in a publicly accessible path. 该路径应通过 HTTPS 运作。The path should work over HTTPS.
  3. 在测试创建期间,将完整的自定义终结点 URL(例如 https://contoso.com/test/trans.gif) )复制到“自定义终结点”字段。Copy the full custom endpoint URL (e.g. https://contoso.com/test/trans.gif) into the custom endpoint field during your test creation.

后续步骤Next steps

阅读 Internet 分析器常见问题解答Read the Internet Analyzer FAQ