[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-09-03。"],[],[],null,["# Monitor instances\n\nThis page describes how to monitor your Memorystore for Valkey instance's performance.\n\nMonitoring allows you to check in on your instances to make sure they're\nbehaving as desired. This guide covers a few basic examples of monitoring\nMemorystore for Valkey instances. In addition to the types of monitoring covered\nhere, Memorystore for Valkey is compatible with open source Valkey, so you can use\nexisting Valkey monitoring tools from Compute Engine VMs to monitor your\ninstances.\n\nMonitoring instances in the Google Cloud console\n------------------------------------------------\n\nTo view an instance's core metrics:\n\n1. Go to the **Memorystore for Valkey** page in the Google Cloud console. \n [Memorystore for Valkey](https://console.cloud.google.com/memorystore/valkey/instances?)\n2. Click the instance ID of the instance you'd like to view.\n\nYou can monitor several metrics by visiting an instance's **Monitoring**\npage in the Google Cloud console. The Memorystore for Valkey monitoring\npage shows a chart for CPU seconds, memory usage, received connections, and\nothers.\n\nMonitoring instances with Cloud Monitoring\n------------------------------------------\n\n[Cloud Monitoring](/monitoring/docs) is a monitoring service\nthat allows you to view metrics such as average connected clients for your\ninstances. For more details about all Memorystore for Valkey metrics available\nfrom Cloud Monitoring, see the\n[Supported monitoring metrics](/memorystore/docs/valkey/supported-monitoring-metrics).\n\n### Signing up for Cloud Monitoring\n\nTo access the monitoring console, click **Monitoring** in the\nGoogle Cloud console navigation pane:\n\n[Go to Google Cloud console](https://console.cloud.google.com/)\n\nFor pricing information, see\n[Cloud Monitoring pricing](/stackdriver/pricing).\n\n### Viewing instance memory utilization in Google Cloud Observability\n\nTo view instance memory utilization information, use Metrics Explorer:\n\n1. Go to the Google Cloud console, login and navigate to the project with your\n Valkey instances:\n\n [Go to Google Cloud console](https://console.cloud.google.com/)\n2. Select **Monitoring** from the left navigation menu.\n\n3. In **Monitoring** , if the navigation pane isn't expanded,\n click **Expand**\n *last_page*.\n This button is located on the lower left of the console.\n\n4. If **Metrics Explorer** is shown in the navigation pane, click\n **Metrics Explorer** . Otherwise, select **Resources** and then select\n **Metrics Explorer**.\n\n5. Select *Memorystore Instance* as the\n resource type and *Memory utilization - average* as the metric.\n\nSet a Monitoring alert for memory usage\n---------------------------------------\n\nYou can set an alert in Monitoring to notify you if the *average\nmemory utilization* metric exceeds a threshold that you set.\n\nTo create an alert for the Used Memory metric:\n\n1. In the Google Cloud console, select **Monitoring**, or use the\n following button:\n\n [Go to Monitoring](https://console.cloud.google.com/monitoring)\n2. Select **Alerting \\\u003e Create a Policy**.\n\n3. Add a condition for Used Memory threshold:\n\n 1. Use the **Select a metric** dropdown to select the *Memory utilization - average* metric for the *Memorystore Instance* resource.\n 2. Click the **Next** button.\n4. Configure the alert:\n\n 1. In the **Configure trigger** section, choose **Any time the series violates**.\n 2. Set **Threshold position** to **Above threshold**.\n 3. Set **Threshold** to the memory usage percentage you want to be notified at.\n 4. Click the **Next** button.\n5. In the **Notifications and name** section, select your desired\n notification channel.\n\n 1. Add a name for your alert policy like \"Memorystore instance memory utilization alert\"\n6. Click **Create Policy**.\n\nYou are now notified anytime the threshold is violated.\n\nYou can access this alerting policy from the **Alerting** tab in the\nMonitoring UI."]]