Monitor instances

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:

  1. Go to the Memorystore for Redis Cluster page in the Google Cloud console.
    Memorystore for Redis Cluster
  2. 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:

Go to Google Cloud console

For pricing information, see Cloud Monitoring pricing.

Viewing instance memory utilization in Google Cloud Observability

To view instance memory utilization information, use Metrics Explorer:

  1. Go to the Google Cloud console, login and navigate to the project with your Redis instances:

    Go to Google Cloud console

  2. Select Monitoring from the left navigation menu.

  3. In Monitoring, if the navigation pane isn't expanded, click Expand . This button is located on the lower left of the console.

  4. If Metrics Explorer is shown in the navigation pane, click Metrics Explorer. Otherwise, select Resources and then select Metrics Explorer.

  5. Select Cloud Memorystore Redis Cluster as the resource type and Redis cluster average memory utilization as the metric.

Your graph looks something like this:

Graph of instance uptime

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:

  1. In the Google Cloud console, select Monitoring, or use the following button:

    Go to Monitoring

  2. Select Alerting > Create a Policy.

  3. Add a condition for Used Memory threshold:

    1. Use the Select a metric dropdown to select the Redis cluster average memory utilization metric for the Cloud Memorystore Redis Cluster resource.
    2. Click the Next button.
  4. Configure the alert:

    1. In the Configure trigger section, choose Any time the series violates.
    2. Set Threshold position to Above threshold.
    3. Set Threshold to the memory usage percentage you want to be notified at.
    4. Click the Next button.
  5. In the Notifications and name section, select your desired notification channel.

    1. Add a name for your alert policy like "Redis Cluster memory utilization alert"
  6. 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

  1. Go to the Logs Explorer page in the Google Cloud console.

    Logs Explorer

  2. To view the audit logs, select Audited Resource > Cloud Redis > CloudRedisCluster from the resources drop-down.