Supported monitoring metrics for Memorystore for Redis

This page lists Cloud Monitoring metrics available for Memorystore for Redis, and describes what each metric measures.

To learn how to view Memorystore for Redis metrics, see Monitoring Redis instances.

Cloud Monitoring metrics

The following metrics are available when using Cloud Monitoring:

Metric name Full endpoint URL Description
Average TTL redis.googleapis.com/keyspace/avg_ttl Shows the average Time To Live (TTL) of all keys with TTLs.
Blocked Clients redis.googleapis.com/clients/blocked Number of blocked clients.
Seconds Lagging redis.googleapis.com/replication/master/slaves/lag This metric shows the number of seconds that the replica is lagging behind the primary. Displayed as the current time minus the time that the replica acknowledged receiving the message of incoming bytes.
Bytes Pending Replication redis.googleapis.com/replication/offset_diff The number of bytes that have not been replicated to the replica. This is the difference between replication byte offset (primary) and replication byte offset (replica). You will observe an increase in bytes pending as the primary replicates to the replica during a failover.
Cache Hit Ratio redis.googleapis.com/stats/cache_hit_ratio The ratio of successful Redis database calls and unsuccessful calls. A call is successful when the Redis database returns the value which the caller requested. A higher cache-hit ratio means the cache is being more fully utilized, which is beneficial for your application.
Calls redis.googleapis.com/commands/calls The number of Redis commands made per minute on your Redis instance. These include all open source Redis commands such as SET, GET, HSET, etc. This metric does not count Memorystore for Redis commands like 'create', 'update', etc.
Connected Clients redis.googleapis.com/clients/connected The number of clients connected to the Redis instance.
CPU Seconds redis.googleapis.com/stats/cpu_utilization CPU usage time per minute used by the Redis server, broken down by the system/user space and parent/child relationship. CPU seconds shows a total of all threads for the redis server main process. If you want to see the CPU usage for the main thread only, you can view the Main Thread CPU Seconds metric.
Evicted Keys redis.googleapis.com/stats/evicted_keys The number of keys evicted due to the maxmemory limit.
Expirable Keys redis.googleapis.com/keyspace/keys_with_expiration The number of keys that have an expiration set in this instance. If empty, the chart for this metric displays "no data".
Main Thread CPU Seconds redis.googleapis.com/stats/cpu_utilization_main_thread CPU-seconds consumed by the Redis server main thread, broken down by system/user space and parent/child relationship. This metric is helpful for identifying CPU usage spikes on the main thread.
Maximum Memory redis.googleapis.com/stats/memory/maxmemory Maximum amount of memory in the instance that keys can consume. Keys are evicted after reaching this maxmemory limit in accordance with the eviction policy set on the instance.
Memory Usage Ratio redis.googleapis.com/stats/memory/usage_ratio Memory usage as a ratio of maximum memory.
Misses redis.googleapis.com/stats/keyspace_misses Number of failed lookups of keys in the main dictionary.
Node Role redis.googleapis.com/replication/role Returns a value indicating the node role. 1 indicates primary and 0 indicates replica.
Persisting RDB redis.googleapis.com/persistence/rdb/bgsave_in_progress Indicates if a RDB save is ongoing. 1 indicates yes and 0 indicates no.
Pub/Sub Channels redis.googleapis.com/stats/pubsub/channels Global number of Pub/Sub channels with client subscriptions for Memorystore for Redis.
Pub/Sub Patterns redis.googleapis.com/stats/pubsub/patterns Global number of Pub/Sub patterns with client subscriptions for Memorystore for Redis.
Rejected Connections redis.googleapis.com/stats/reject_connections_count Number of connections rejected because of the maxclients limit, memory pressure, or an invalid TLS connection on in-transit encryption enabled instances.
Replication Byte Offset (Primary) redis.googleapis.com/replication/master_repl_offset The number of bytes that primary has produced and is sending to the replica. You can subtract Replication Byte Offset (Replica) from Replication Byte Offset (Primary) to determine the size of any replication delay. No difference means the replica is fully in sync.
Replication Byte Offset (Replica) redis.googleapis.com/replication/master/slaves/offset The number of bytes that have been acknowledged by the replica. You can subtract Replication Byte Offset (Replica) from Replication Byte Offset (Primary) to determine the size of any replication delay. No difference means the replica is fully in sync.
System Memory Usage Ratio redis.googleapis.com/stats/memory/system_memory_usage_ratio Used memory as a ratio of total available system memory. Total available system memory is the memory you provisioned for your instance plus additional memory that Memorystore provides for overhead processes.
Time in System Memory Overload redis.googleapis.com/stats/memory/system_memory_overload_duration The amount of time in microseconds the instance is in system memory overload mode.
Time per Call redis.googleapis.com/commands/usec_per_call Average time per call over 1 minute by command.
Total Connections Received redis.googleapis.com/stats/connections/total Total number of connections accepted by the server.
Total Time of Calls redis.googleapis.com/commands/total_time Total amount of time spent per open source Redis command (e.g. SET, GET, HSET, etc…) in microseconds over the last second. For example if SET used 800,000 microseconds it would mean that it took 80% of one CPU core to process all SET commands combined.
Total Traffic to Redis redis.googleapis.com/stats/network_traffic Total number of bytes sent to/from Redis (includes bytes from commands themselves, payload data, and delimiters).
Uptime redis.googleapis.com/server/uptime Uptime of the currently running Redis server process
Used Memory redis.googleapis.com/stats/memory/usage Total number of bytes allocated by the Redis server process.

Memorystore for Redis instance details metrics

The following metrics are available on the instance details page of your Memorystore for Redis instance:

Metric name Description
Memory Usage / Max Memory A chart that shows memory usage compared to the maxmemory limit for your instance.
Evicted Keys / Expired Keys A chart that displays the number of evicted keys and expired keys.
Connected Clients / Blocked Clients A chart that displays the number of connected clients and blocked clients.
Network Bytes In/Out A chart that displays the number of bytes sent and received by the instance over a given period.
CPU seconds A chart that displays CPU seconds used by the instance over a given period of time.

RDB Snapshots metrics

The following metrics help you manage RDB Snapshots for Memorystore for Redis.

Snapshot monitoring metrics

Metric name Full endpoint URL Description
Snapshot mode redis.googleapis.com/rdb/enabled Indicates if the RDB snapshot mode is enabled
Next snapshot time redis.googleapis.com/rdb/snapshot/time_until_next_run Seconds until the next scheduled snapshot.

Snapshot status metrics

Metric name Full endpoint URL Description
RDB snapshot in progress redis.googleapis.com/rdb/snapshot/in_progress Indicates if RDB snapshot is in progress. When the metric value is true, then an RDB snapshot is in progress.
RDB snapshot elapsed time redis.googleapis.com/rdb/snapshot/elapsed_time Indicates increasing time elapsed while creating the current snapshot.
RDB snapshot attempts count redis.googleapis.com/rdb/snapshot/attempt_count Indicates number of snapshot attempts every minute.
RDB snapshot last status redis.googleapis.com/rdb/snapshot/last_status Indicates status of the most recent snapshot attempt.
RDB snapshot duration redis.googleapis.com/rdb/snapshot/last_success_duration Indicates the total time required to write the last successful snapshot, not including failed attempts.
RDB snapshot age redis.googleapis.com/rdb/snapshot/last_success_age Indicates time elapsed since the start of the last successful snapshot.

Snapshot recovery metrics

Metric name Full endpoint URL Description
RDB recovery in progress redis.googleapis.com/rdb/recovery/in_progress Indicates if recovery from an RDB snapshot is in progress. When the metric value is true, then a recovery is in progress.
RDB recovery elapsed time redis.googleapis.com/rdb/recovery/elapsed_time Indicates increasing time elapsed for an in-progress recovery from an RDB snapshot.
RDB recovery estimated time redis.googleapis.com/rdb/recovery/estimated_recovery_time Indicates the expected recovery time when using the last successful snapshot for recovery.
RDB recovery remaining time redis.googleapis.com/rdb/recovery/estimated_remaining_time Indicates remaining time to finish recovery from an RDB snapshot.
RDB recovery attempts redis.googleapis.com/rdb/recovery/attempts_since_last_success Indicates number of recovery attempts since the last successful recovery attempt.
RDB recovery last status redis.googleapis.com/rdb/recovery/last_status Indicates status of the most recent recovery.
RDB recovery last duration redis.googleapis.com/rdb/recovery/last_duration Indicates time it took to restore the last snapshot.
RDB Snapshot Size redis.googleapis.com/rdb/recovery/total_bytes_count Indicates the size of the snapshot.
RDB Load progress redis.googleapis.com/rdb/recovery/loaded_bytes_count During a recovery, indicates how many bytes have loaded. 0 if the recovery is not active.