探究适用于 Azure Cache for Redis(预览版)的 Azure MonitorExplore Azure Monitor for Azure Cache for Redis (preview)

对于所有 Azure Cache for Redis 资源,适用于 Azure Cache for Redis(预览版)的 Azure Monitor 提供了一个统一的交互式视图,其中提供了:For all of your Azure Cache for Redis resources, Azure Monitor for Azure Cache for Redis (preview) provides a unified, interactive view of:

  • 总体性能Overall performance
  • 失败数Failures
  • 容量Capacity
  • 操作运行状况Operational health

本文有助于了解这种新的监视体验的优势。This article helps you understand the benefits of this new monitoring experience. 它还演示了如何修改和调整该体验,以满足组织的独特需求。It also shows how to modify and adapt the experience to fit the unique needs of your organization.


在开始体验之前,应先了解适用于 Azure Cache for Redis 的 Azure Monitor 如何直观显示信息。Before starting the experience, you should understand how Azure Monitor for Azure Cache for Redis visually presents information.

它提供以下功能:It delivers:

  • 在一个位置大规模查看所有订阅中的 Azure Cache for Redis 资源。At scale perspective of your Azure Cache for Redis resources in a single location across all of your subscriptions. 可以选择将范围限制为仅要评估的订阅和资源。You can selectively scope to only the subscriptions and resources you want to evaluate.

  • 对特定的 Azure Cache for Redis 资源进行深化分析。Drill-down analysis of a particular Azure Cache for Redis resource. 可以诊断问题并查看利用率、失败、容量和操作的详细分析。You can diagnose problems and see detailed analysis of utilization, failures, capacity, and operations. 选择其中的任何类别以深入了解相关信息。Select any of these categories to see an in-depth view of relevant information.

  • 自定义此体验,它基于 Azure Monitor 工作簿模板构建。Customization of this experience, which is built atop Azure Monitor workbook templates. 通过此体验,可以更改显示的指标,并修改或设置与限制一致的阈值。The experience lets you change what metrics are displayed and modify or set thresholds that align with your limits. 可以将更改保存在自定义工作簿中,然后将工作簿图表固定到 Azure 仪表板。You can save the changes in a custom workbook and then pin workbook charts to Azure dashboards.

此功能不要求启用或配置任何内容。This feature doesn't require you to enable or configure anything. 默认收集 Azure Cache for Redis 信息。Azure Cache for Redis information is collected by default.


使用此功能不收取任何费用。There is no charge to access this feature. 系统只会对你配置或启用的 Azure Monitor 基本功能收费,如 Azure Monitor 定价详细信息页中所述。You're charged only for the Azure Monitor essential features you configure or enable, as described on the Azure Monitor pricing details page.

查看 Azure Cache for Redis 的利用率和性能指标View utilization and performance metrics for Azure Cache for Redis

若要查看所有订阅中的存储帐户的利用率和性能,请执行以下步骤:To view the utilization and performance of your storage accounts across all of your subscriptions, do the following steps:

  1. 登录 Azure 门户Sign in to the Azure portal.

  2. 搜索“Monitor”并选择“Monitor” 。Search for Monitor, and select Monitor.


  3. 选择“Azure Cache for Redis (预览版)”。Select Azure Cache for Redis (preview). 如果此选项不存在,请选择“更多” > “Azure Cache for Redis” 。If this option isn't present, select More > Azure Cache for Redis.


在“概览”中,表中显示了交互式 Azure Cache for Redis 指标。On Overview, the table displays interactive Azure Cache for Redis metrics. 可以根据你从下面的下拉列表中选择的选项来筛选结果:You can filter the results based on the options you select from the following drop-down lists:

  • 订阅:仅列出具有 Azure Cache for Redis 资源的订阅。Subscriptions: Only subscriptions that have an Azure Cache for Redis resource are listed.

  • Azure Cache for Redis:可以选择全部、部分或单个 Azure Cache for Redis 资源。Azure Cache for Redis: You can select all, a subset, or a single Azure Cache for Redis resource.

  • 时间范围:默认情况下,表会根据相应选择显示过去四小时的信息。Time Range: By default, the table displays the last four hours of information based on the corresponding selections.

下拉列表下有一个计数器磁贴。There's a counter tile under the drop-down lists. 该磁贴显示所选订阅中 Azure Cache for Redis 资源的总数。The tile shows the total number of Azure Cache for Redis resources in the selected subscriptions. 工作簿列的条件颜色代码或热度地图报告事务指标。Conditional color codes or heat maps for workbook columns report transaction metrics. 最深的颜色表示最高值。The deepest color represents the highest value. 较浅的颜色表示较低的值。Lighter colors represent lower values.

选择某个 Azure Cache for Redis 资源旁边的下拉列表箭头时,会在单个资源级别显示性能指标明细。Selecting a drop-down list arrow next to one of the Azure Cache for Redis resources reveals a breakdown of the performance metrics at the individual resource level.


当选择以蓝色突出显示 Azure Cache for Redis 资源名称,会看到关联帐户的默认“概述”表。When you select the Azure Cache for Redis resource name highlighted in blue, you see the default Overview table for the associated account. 其中显示了以下列:It shows these columns:

  • 已用内存Used Memory
  • 已用内存百分比Used Memory Percentage
  • 服务器负载Server Load
  • 服务器负载时间线Server Load Timeline
  • 连接的客户端数Connected Clients
  • 缓存未命中数Cache Misses
  • 错误数(最大值)Errors (Max)


选择页面顶部的“操作”时,工作簿模板的“操作”表随即打开 。When you select Operations at the top of the page, the Operations table of the workbook template opens. 其中显示了以下列:It shows these columns:

  • 总操作数Total Operations
  • 总操作数时间线Total Operations Timeline
  • 每秒操作数Operations Per Second
  • 获取数Gets
  • 设置数Sets



选择页面顶部的“使用情况”时,工作簿模板的“使用情况”表随即打开 。When you select Usage at the top of the page, the Usage table of the workbook template opens. 其中显示了以下列:It shows these columns:

  • 缓存读取量Cache Read
  • 缓存读取量时间线Cache Read Timeline
  • 缓存写入量Cache Write
  • 缓存命中数Cache Hits
  • 缓存未命中数Cache Misses



选择页面顶部的“故障”时,工作簿模板的“故障”表随即打开 。When you select Failures at the top of the page, the Failures table of the workbook template opens. 其中显示了以下列:It shows these columns:

  • 错误总数Total Errors
  • 故障转移/错误数Failover/Errors
  • UnresponsiveClient/错误数UnresponsiveClient/Errors
  • RDB/错误数RDB/Errors
  • AOF/错误数AOF/Errors
  • 导出/错误数Export/Errors
  • 数据丢失/错误数Dataloss/Errors
  • 导入/错误数Import/Errors

按 HTTP 请求类型细分的故障的屏幕截图

指标定义Metric definitions

有关构成这些工作簿的指标定义的完整列表,请查看可用指标和报告时间间隔一文。For a full list of the metric definitions that form these workbooks, check out the article on available metrics and reporting intervals.

从 Azure Cache for Redis 资源查看View from an Azure Cache for Redis resource

若要直接从单个资源访问适用于 Azure Cache for Redis 的 Azure Monitor,请执行以下操作:To access Azure Monitor for Azure Cache for Redis directly from an individual resource:

  1. 在 Azure 门户中,选择 Azure Cache for Redis。In the Azure portal, select Azure Cache for Redis.

  2. 从列表中,选择单个 Azure Cache for Redis 资源。From the list, choose an individual Azure Cache for Redis resource. 在“监视”部分选择“见解(预览)”。In the monitoring section, choose Insights (preview).


还可以通过从 Azure Monitor 级工作簿中选择 Azure Cache for Redis 资源的资源名称来访问这些视图。These views are also accessible by selecting the resource name of an Azure Cache for Redis resource from the Azure Monitor level workbook.

资源级概述Resource-level overview

在 Azure Redis Cache 的“概述”工作簿中,显示了多个可供访问以下内容的性能指标:On the Overview workbook for the Azure Redis Cache, it shows several performance metrics that give you access to:

  • 交互式性能图表,其中显示与 Azure Cache for Redis 性能相关的最重要的详细信息。Interactive performance charts showing the most essential details related to Azure Cache for Redis performance.

  • 指标和状态磁贴,突出显示了分片性能、连接的客户端总数以及整体延迟。Metrics and status tiles highlighting shard performance, total number of connected clients, and overall latency.

“概述”仪表板的屏幕截图,其中显示有关 CPU 性能、已用内存、连接的客户端数、错误数、过期密钥数和逐出的密钥数的信息

选择“性能”或“操作”对应的任何其他选项卡会打开相应的工作簿 。Selecting any of the other tabs for Performance or Operations opens the respective workbooks.

资源级性能Resource-level performance


资源级操作Resource-level operations


固定、导出和展开Pin, export, and expand

若要将任何指标部分固定到 Azure 仪表板,请选择该部分右上角的图钉符号。To pin any metric section to an Azure dashboard, select the pushpin symbol in the section's upper right.


若要将数据导出为 Excel 格式,请选择图钉符号左侧的向下箭头符号。To export your data into an Excel format, select the down arrow symbol to the left of the pushpin symbol.


若要展开或折叠工作簿中的所有视图,请选择导出符号左侧的展开符号。To expand or collapse all views in a workbook, select the expand symbol to the left of the export symbol.


自定义适用于 Azure Cache for Redis(预览版)的 Azure MonitorCustomize Azure Monitor for Azure Cache for Redis (preview)

因为此体验是基于 Azure Monitor 工作簿模板构建的,所以可以选择“自定义” > “编辑” > 保存”,将修改后版本的副本保存为自定义工作簿 。Because this experience is built atop Azure Monitor workbook templates, you can select Customize > Edit > Save to save a copy of your modified version into a custom workbook.


工作簿保存在“我的报表”部分或“共享报表”部分的资源组中 。Workbooks are saved within a resource group in either the My Reports section or the Shared Reports section. “我的报表”仅供你使用。My Reports is available only to you. “共享报表”可供有权访问资源组的每个人使用。Shared Reports is available to everyone with access to the resource group.

保存自定义工作簿后,转到工作簿库来打开它。After you save a custom workbook, go to the workbook gallery to open it.



如需故障排查指南,请参阅故障排除文章中提供的基于工作簿的专用见解。For troubleshooting guidance, refer to the dedicated workbook-based insights troubleshooting article.

后续步骤Next steps