Google Cloud Memorystore for Redis

Overview

Google Cloud Memorystore for Redis provides a fully managed in-memory data store service built on scalable, secure, and highly available infrastructure.

Use the Datadog Google Cloud Platform integration to collect metrics from Google Cloud Memorystore for Redis.

Setup

Installation

If you haven’t already, set up the Google Cloud Platform integration first. There are no other installation steps.

Log collection

Google Cloud Memorystore for Redis logs are collected with Google Cloud Logging and sent to a Dataflow job through a Cloud Pub/Sub topic. If you haven’t already, set up logging with the Datadog Dataflow template.

Once this is done, export your Google Cloud Memorystore for Redis logs from Google Cloud Logging to the Pub/Sub topic:

  1. Go to the Google Cloud Logging page and filter the Google Cloud Memorystore for Redis logs.
  2. Click Create Export and name the sink.
  3. Choose “Cloud Pub/Sub” as the destination and select the Pub/Sub topic that was created for that purpose. Note: The Pub/Sub topic can be located in a different project.
  4. Click Create and wait for the confirmation message to show up.

Data Collected

Metrics

gcp.redis.clients.blocked
(gauge)
Number of blocked clients
gcp.redis.clients.connected
(gauge)
Number of client connections
Shown as connection
gcp.redis.commands.calls
(count)
Total number of calls for this command
gcp.redis.commands.total_time
(gauge)
The amount of time in microseconds that this command took in the last second
Shown as microsecond
gcp.redis.commands.usec_per_call
(gauge)
Average time per call over 1 minute by command
Shown as second
gcp.redis.keyspace.avg_ttl
(gauge)
Average TTL for keys in this database
Shown as millisecond
gcp.redis.keyspace.keys_with_expiration
(gauge)
Number of keys with an expiration in this database
Shown as key
gcp.redis.keyspace.keys
(gauge)
Number of keys stored in this database
Shown as key
gcp.redis.persistence.rdb.bgsave_in_progress
(gauge)
Flag indicating a RDB save is on-going
gcp.redis.replication.master.slaves.lag
(gauge)
The number of seconds that replica is lagging behind primary.
Shown as second
gcp.redis.replication.master.slaves.offset
(gauge)
The number of bytes that have been acknowledged by replicas.
Shown as byte
gcp.redis.replication.master_repl_offset
(gauge)
The number of bytes that master has produced and sent to replicas. To be compared with replication byte offset of replica.
Shown as byte
gcp.redis.replication.offset_diff
(gauge)
The number of bytes that have not been replicated to the replica. This is the difference between replication byte offset (master) and replication byte offset (replica).
Shown as byte
gcp.redis.replication.role
(gauge)
Returns a value indicating the node role. 1 indicates master and 0 indicates replica.
gcp.redis.server.uptime
(gauge)
Uptime in seconds
Shown as second
gcp.redis.stats.cache_hit_ratio
(gauge)
Cache Hit ratio as a fraction
gcp.redis.stats.connections.total
(gauge)
Total number of connections accepted by the server
Shown as connection
gcp.redis.stats.cpu_utilization
(gauge)
CPU, in seconds of utilization, consumed by the Redis server broken down by System/User and Parent/Child relationship
Shown as second
gcp.redis.stats.evicted_keys
(count)
Number of evicted keys due to maxmemory limit
Shown as key
gcp.redis.stats.expired_keys
(count)
Total number of key expiration events
Shown as key
gcp.redis.stats.keyspace_hits
(count)
Number of successful lookup of keys in the main dictionary
Shown as key
gcp.redis.stats.keyspace_misses
(count)
Number of failed lookup of keys in the main dictionary
Shown as key
gcp.redis.stats.memory.maxmemory
(gauge)
Maximum amount of memory Redis can consume
Shown as byte
gcp.redis.stats.memory.system_memory_usage_ratio
(gauge)
Memory usage as a ratio of maximum system memory
Shown as fraction
gcp.redis.stats.memory.usage_ratio
(gauge)
Memory usage as a ratio of maximum memory
Shown as fraction
gcp.redis.stats.memory.usage
(gauge)
Total number of bytes allocated by Redis
Shown as byte
gcp.redis.stats.network_traffic
(count)
Total number of bytes sent to/from redis (includes bytes from commands themselves, payload data, and delimiters)
Shown as byte
gcp.redis.stats.pubsub.channels
(gauge)
Global number of pub/sub channels with client subscriptions
gcp.redis.stats.pubsub.patterns
(gauge)
Global number of pub/sub pattern with client subscriptions
gcp.redis.stats.reject_connections_count
(count)
Number of connections rejected because of maxclients limit
Shown as connection

Events

The Google Cloud Memorystore for Redis integration does not include any events.

Service Checks

The Google Cloud Memorystore for Redis integration does not include any service checks.

Troubleshooting

Need help? Contact Datadog support.