This page describes how to monitor your Memorystore for Valkey instance's performance.
Monitoring allows you to check in on your instances to make sure they're behaving as desired. This guide covers a few basic examples of monitoring Memorystore for Valkey instances. In addition to the types of monitoring covered here, Memorystore for Valkey is compatible with open source Valkey, so you can use existing Valkey monitoring tools from Compute Engine VMs to monitor your instances.
Monitoring instances in the Google Cloud console
To view an instance's core metrics:
- Go to the Memorystore for Valkey page in the Google Cloud console.
Memorystore for Valkey - Click the instance ID of the instance you'd like to view.
You can monitor several metrics by visiting an instance's Monitoring page in the Google Cloud console. The Memorystore for Valkey monitoring page shows a chart for CPU seconds, memory usage, received connections, and others.
Monitoring instances with Cloud Monitoring
Cloud Monitoring is a monitoring service that allows you to view metrics such as average connected clients for your instances. For more details about all Memorystore for Valkey metrics available from Cloud Monitoring, see the Supported monitoring metrics.
Signing up for Cloud Monitoring
To access the monitoring console, click Monitoring in the Google Cloud console navigation pane:
For pricing information, see Cloud Monitoring pricing.
Viewing instance memory utilization in Google Cloud Observability
To view instance memory utilization information, use Metrics Explorer:
Go to the Google Cloud console, login and navigate to the project with your Valkey instances:
Select Monitoring from the left navigation menu.
In Monitoring, if the navigation pane isn't expanded, click Expand last_page. This button is located on the lower left of the console.
If Metrics Explorer is shown in the navigation pane, click Metrics Explorer. Otherwise, select Resources and then select Metrics Explorer.
Select Memorystore Instance as the resource type and Memory utilization - average as the metric.
Set a Monitoring alert for memory usage
You can set an alert in Monitoring to notify you if the average memory utilization metric exceeds a threshold that you set.
To create an alert for the Used Memory metric:
In the Google Cloud console, select Monitoring, or use the following button:
Select Alerting > Create a Policy.
Add a condition for Used Memory threshold:
- Use the Select a metric dropdown to select the Memory utilization - average metric for the Memorystore Instance resource.
- Click the Next button.
Configure the alert:
- In the Configure trigger section, choose Any time the series violates.
- Set Threshold position to Above threshold.
- Set Threshold to the memory usage percentage you want to be notified at.
- Click the Next button.
In the Notifications and name section, select your desired notification channel.
- Add a name for your alert policy like "Memorystore instance memory utilization alert"
Click Create Policy.
You are now notified anytime the threshold is violated.
You can access this alerting policy from the Alerting tab in the Monitoring UI.