This page describes how to monitor your Memorystore for Redis Cluster 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 Redis Cluster instances. In addition to the types of monitoring covered here, Memorystore for Redis Cluster is compatible with open source Redis, so you can use existing Redis 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 Redis Cluster page in the Google Cloud console.
Memorystore for Redis Cluster - 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 Redis Cluster 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 Redis Cluster 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 Redis 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 Cloud Memorystore Redis Cluster as the resource type and Redis cluster average memory utilization as the metric.
Your graph looks something like this:
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 Redis cluster average memory utilization metric for the Cloud Memorystore Redis Cluster 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 "Redis Cluster 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.
Viewing Memorystore for Redis Cluster logs
Memorystore for Redis Cluster produces logs that Cloud Logging captures.
Viewing audit logs
Go to the Logs Explorer page in the Google Cloud console.
To view the audit logs, select Audited Resource > Cloud Redis > CloudRedisCluster from the resources drop-down.