tencent cloud

Tencent Cloud Distributed Cache (Redis OSS-Compatible)

Viewing Monitoring Data (Redis/Valkey Edition)

다운로드
포커스 모드
폰트 크기
마지막 업데이트 시간: 2026-03-17 18:10:56
AI 번역

Scenarios

As your business grows, the stability and performance of cache instances directly affect the response speed and user experience of your business. Distributed Cache provides monitoring services across three dimensions: instances, Redis nodes, and Proxy nodes. It supports a data collection granularity of 5 seconds and is suitable for the following scenarios:
Performance Bottleneck Identification: When latency jitter or slow responses occur in your business, quickly identify the layer where the bottleneck resides through multi-dimensional monitoring (metrics such as CPU, memory, network, latency, and slow queries), without the need for item-by-item elimination.
Capacity Planning and Cost Optimization: Analyze historical trends of metrics such as memory utilization, total number of keys, and traffic utilization to provide data support for scaling decisions, preventing resource shortages or excessive capacity expansion.
Anomaly Tracing and Root Cause Analysis: Supports multiple data granularities (5 seconds/1 minute/5 minutes/1 hour/1 day) and traces abnormal events by combining metrics such as connection quantity, throttling quantity, and Key evictions, restoring the system state at the time of the incident.
Routine Ops Inspection: Regularly monitor core metrics such as instance CPU utilization, memory utilization, and connection quantity to promptly identify potential risks.

Feature List

The monitoring feature of Distributed Cache provides the following core capabilities:
Three-Dimensional Monitoring Coverage: Supports viewing monitoring data at the instance, Redis node, and Proxy node levels. Instance monitoring aggregates data from each node using algorithms such as SUM, AVG, MAX, and LAST.
Multi-Granularity Data Collection: Supports multiple monitoring granularities of 5 seconds, 1 minute, 5 minutes, 1 hour, and 1 day, meeting requirements from real-time monitoring to long-term trend analysis.
API Support: Pull monitoring data through TCOP APIs to support automated Ops and custom monitoring dashboard integration.

Monitoring Granularity

Monitoring data supports the following granularities, each with a different data retention period:
Monitoring Granularity
Data Retention Period
Scenarios
5 seconds
1 day
Real-time monitoring and rapid exception locating
1 minute
15 days
Daily Ops inspection and short-term trend analysis
5 minutes.
31 days
Mid-term performance trend observation
1 hour
93 days
Long-term capacity planning and historical trend analysis
1 day
186 days
Daily long-term operations report

Prerequisites

A Distributed Cache instance has been created.
The instance is in the Running state.

Operation Steps

Note:
After Ops operations such as failover, capacity expansion, or scale-in occur on an instance, the underlying node IDs will change. To query node-level monitoring data through the API, you need to call the DescribeInstanceNodeInfo API again to obtain the current node IDs.
Monitoring data has some latency in collection and reporting, typically within the range of seconds. Data refresh on the real-time monitoring page may also experience brief latency, which is normal.
Data retention periods vary by monitoring granularity. Historical data is automatically purged after the retention period expires and cannot be restored. For long-term retention of monitoring data, you are advised to periodically pull the data through the API and store it in your own system.

Method 1: Quickly Viewing in the Instance List

This view is suitable for quickly viewing the core metrics of a single instance, without the need to go to the instance details page.
2. Above the Instance List page on the right, select the target region.
3. In the instance list, find the target instance.
4. In the Monitoring column, click

to quickly view core monitoring data in the panel that pops up on the right.


Method 2: Viewing on the System Monitoring Page

This view is suitable for viewing detailed monitoring data and multi-dimensional analysis.
2. Above the Instance List page on the right, select the target region.
3. In the instance list, find the target instance.
4. Click the target instance ID to go to the Instance Details page.
5. Select the System Monitoring tab to view the real-time running status of the instance and its underlying components (such as Proxy nodes and Redis nodes). This tab provides both global and local views to help you analyze performance bottlenecks from all perspectives.
Page Area
Core Positioning
Main Controls and Supported Operations
Typical Use Cases
Main monitoring view
(Top area)
Single-metric deep analysis: Provides a large-format line chart for focused viewing of detailed fluctuation trends of a single core metric.
Switching Views and Metrics: In the View dropdown list, switch the component level to view (such as instance or Proxy). In the Metric dropdown list, switch the specific metric (such as CPU utilization).
Setting Time and Granularity: In the time area, customize the time range for queries and the aggregation granularity of data points.
Viewing Point Details: Hover over the line chart to view the exact value at a specific time point.
Enabling All-Node Comparison: Click All-Node Comparison in the upper-right corner to horizontally compare the data of all nodes at the current level in the same chart.
Troubleshooting: When an alarm is received for a specific metric (such as a CPU spike), zoom in on this area to view the precise trend of that metric.
Horizontal Comparison: Use the All-Node Comparison feature to check whether some nodes are overloaded or have skewed requests.
Detailed metrics dashboard
(Bottom area)
Multi-dimensional global overview: Displays all key metrics of the current object in a tiled layout for quickly evaluating overall system health and performance extremes.
Drill Down to Locate a Node: In the resource navigation tree on the left, expand and click a specific node to view its monitoring data.
Setting Time and Granularity: In the time area, customize the time range for queries and the aggregation granularity of data points.
Overview of Statistical Extremes: Directly read the Max (maximum), Min (minimum), and Avg (average) values on the right side of each metric. No manual calculation is required.
Initiating Historical Comparison: Click Data Comparison to compare monitoring trends across different time periods.
Setting Alarms and Exporting: Click Set Alarm to go to the alarm policy configuration page. Click Export Data to export the monitoring data on the current page to a local device.
Routine Inspection: Get a clear overview of the overall running status of metrics such as CPU, memory, and network connections.
Peak Evaluation: Quickly determine whether resource consumption during peak business periods reaches system bottlenecks based on extreme value statistics.


Viewing Monitoring Data via API

This applies to scenarios such as automated Ops, custom monitoring dashboards, and secondary development of monitoring data. Call the GetMonitorData API of TCOP and set the following parameters to query monitoring data:
Parameter
Description
Namespace
Fixed value QCE/REDIS_MEM.
MetricName
Enter the English name of the metric to query, such as CpuUtil, Connections, Commands.
Period
Monitoring data granularity, in seconds. Supports 5, 60, 300, 3600, and 86400.
Instances.N.Dimensions
To query instance-level monitoring: set instanceid to the instance ID. To query Redis node monitoring: additionally set rnodeid to the Redis node ID. To query Proxy node monitoring: additionally set pnodeid to the Proxy node ID.

Related APIs

API Name
Description
Query monitoring data
Obtain Proxy node IDs and Redis node IDs.
Query the instance list to obtain instance monitoring version information.
Query Instance Access Source Information.
Query Instance Access Latency Distribution.
Query Instance Access Commands.
Query instance CPU time consumption.I

FAQs

How to Determine the Monitoring Granularity Version of an Instance?

Use one of the following two methods to determine:
1. Console Method: Go to the instance details page and click System Monitoring > Monitoring Metrics. The minimum time granularity displayed on the page is the monitoring granularity supported by the instance.
2. API Method: Call the DescribeInstances API and check the returned parameter InstanceSet.MonitorVersion. A returned value of 5s indicates support for 5-second granularity, and a returned value of 1m indicates support for 1-minute granularity.

How to Interpret Memory Skew Rate and Total Request Skew Rate?

Memory Skew Ratio (mem_slope_util): Indicates the ratio of the memory usage of each shard's master node to the average value of all shards. When the memory skew ratio of a shard exceeds 100%, it indicates that the amount of data stored in that shard is higher than the average level. This may suggest the presence of big keys or uneven data distribution. It is recommended to check whether the Key distribution is reasonable.
Total Request Skew Ratio (qps_slope_util): Indicates the ratio of the request volume of each shard's master node to the average value of all shards. When the request skew ratio of a shard exceeds 100%, it indicates that the request pressure on that shard is higher than the average level. Hot keys may exist. It is recommended to use the hot Key analysis feature for further investigation.

Why Does the API Report That a Node Does Not Exist When Node-Level Monitoring Data Is Queried?

After operations such as failover, scale-out, or scale-in on an instance, the underlying node IDs will change. Call the DescribeInstanceNodeInfo API to obtain the current Proxy node IDs and Redis node IDs again, and then use the new node IDs to query monitoring data.

도움말 및 지원

문제 해결에 도움이 되었나요?

피드백