The Memorystore for Redis integration brings instance metrics and logs into SigNoz, with a pre-built dashboard for the service.
Memorystore publishes its metrics to Cloud Monitoring and its logs to Cloud Logging. SigNoz reads them through the OpenTelemetry Collector running in your GCP project.
Choose a setup method
One-Click Integration
SigNoz deploys and manages the Collector for you. You turn the service on in SigNoz, and the SigNoz agent sets up metrics and logs collection in the background. Collects metrics and logs.
Prerequisites
- Your GCP project is connected with One-Click Integration.
- Your Memorystore for Redis instances run in that same project. The agent monitors only the project it's deployed in.
Step 1: Turn on the service in SigNoz
- In SigNoz, go to Integrations > Google Cloud Platform.
- Select GCP Memorystore Redis from the service list.
- Turn on Metric Collection, Log Collection, or both.
- Click Save.
The agent picks up the change within about 30 seconds and updates the Collector and the log sink for you. There's no Collector config to edit.
Step 2: Turn on the optional logs in GCP
Logs for instance changes and maintenance flow with no extra work. Logs for reading instance details, such as listing instances or fetching the AUTH string, are off by default. To collect them, turn on Data Access audit logs for Memorystore for Redis in your project.
Skip this step if you only need metrics and instance change logs.
Validate
-
Wait about 10 minutes for the first metrics to arrive.
-
In SigNoz, go to Dashboards and open GCP Memorystore Redis Overview. Panels should start filling in.
-
If you turned on Log Collection, open Logs in SigNoz and start with this filter to find your project's logs:
gcp.project = '<deployment-project-id>' AND gcp.resource_type = 'redis_instance'Log entries appear within a few minutes of the next instance change or maintenance event. If you don't see maintenance logs, drop the
gcp.resource_typepart of the filter.Verify these values:
<deployment-project-id>: the GCP project you connected with One-Click Integration.
Manual Setup
You run the OpenTelemetry Collector in your own GCP project and add Memorystore metrics to its configuration. You control which metrics are pulled and how often. Collects metrics, and logs if you set up the log pipeline.
Complete the GCP integration setup once, then follow the steps below for each project that hosts Redis instances.
Prerequisites
Before configuring this service, complete the shared GCP integration setup:
- Your GCP account is connected in SigNoz, and the project running your Redis instances is in Projects to Monitor.
- The OpenTelemetry Collector is deployed and running.
- The
signoz-integration-collectorservice account hasroles/monitoring.vieweron the project that hosts the instances. See Create a service account. - The Cloud Monitoring API is enabled in that project.
- For logs only: the Cloud Logging API is enabled in that project, and you have finished steps 1 to 5 of Collect logs.
Step 1: Enable the service in SigNoz
- In SigNoz, go to Integrations > Google Cloud Platform.
- Select GCP Memorystore Redis from the service list.
- Toggle Metric Collection on to activate the pre-built dashboard. Toggle Log Collection if you also want to send logs.
- Open the Data Collected tab and note the metrics listed there. These are the metrics the dashboard's panels query.
Step 2: Add the metrics to your Collector config
Open the otel-collector-config.yaml you created in Deploy the Collector and add the Memorystore metric names to the metrics_list of the googlecloudmonitoring receiver for the project your instances run in. Only the metrics_list shown below changes; leave the rest of the file as is:
receivers:
googlecloudmonitoring:
project_id: "<monitored-project-id>"
collection_interval: 300s # 5 minutes; minimum is 60s
metrics_list:
# Availability
- metric_name: "redis.googleapis.com/server/uptime"
# Compute and memory
- metric_name: "redis.googleapis.com/stats/cpu_utilization_main_thread"
- metric_name: "redis.googleapis.com/stats/memory/usage_ratio"
- metric_name: "redis.googleapis.com/stats/memory/system_memory_usage_ratio"
# Clients
- metric_name: "redis.googleapis.com/clients/connected"
- metric_name: "redis.googleapis.com/clients/blocked"
- metric_name: "redis.googleapis.com/stats/reject_connections_count"
# Keyspace and cache effectiveness
- metric_name: "redis.googleapis.com/keyspace/keys"
- metric_name: "redis.googleapis.com/stats/cache_hit_ratio"
# Commands
- metric_name: "redis.googleapis.com/commands/calls"
- metric_name: "redis.googleapis.com/commands/usec_per_call"Verify these values:
<monitored-project-id>: The GCP project that hosts your Redis instances. It must be one of the entries in your Projects to Monitor list.
Step 3: Apply the configuration
The Collector loads its config from the signoz-integration-collector-config secret, so a config change needs a new secret version and a redeploy:
- Save your updated
otel-collector-config.yaml. - Add a new secret version (step 2 of Deploy the Collector).
- Redeploy the Cloud Run service (step 3).
Step 4: Send logs (optional)
To also send Memorystore audit and maintenance logs to SigNoz, follow Collect logs to set up the Pub/Sub topic, the push subscription, and the logs receiver. In step 6, Create a log sink, use this filter:
resource.type="redis_instance"
OR (protoPayload.serviceName="redis.googleapis.com"
AND protoPayload.methodName:".CloudRedis.")
OR (log_id("maintenance.googleapis.com/activity_log")
AND labels.activity_type_name:"CloudRedisRollout")See Logs under What's collected for what this filter picks up and which logs need a setting in GCP first.
Validate
- Wait one or two collection intervals (up to about 5 minutes with the default
300s). - In SigNoz, go to Dashboards and open the GCP Memorystore Redis Overview dashboard. Panels should start filling in.
- To check a single metric, open Metrics Explorer and query
redis.googleapis.com/stats/memory/usage_ratio. - For logs, open Logs and filter on
gcp.resource_type = 'redis_instance'.
What's collected
Metrics
See the Data Collected tab in the SigNoz integration for the definitive list the dashboard uses, and the GCP metrics list for full definitions.
| Metric name | Unit | Type |
|---|---|---|
redis.googleapis.com/server/uptime | Seconds | Gauge |
redis.googleapis.com/stats/cpu_utilization_main_thread | Seconds | Sum |
redis.googleapis.com/stats/memory/usage_ratio | None | Gauge |
redis.googleapis.com/stats/memory/system_memory_usage_ratio | None | Gauge |
redis.googleapis.com/clients/connected | Count | Gauge |
redis.googleapis.com/clients/blocked | Count | Gauge |
redis.googleapis.com/stats/reject_connections_count | Count | Sum |
redis.googleapis.com/keyspace/keys | Count | Gauge |
redis.googleapis.com/stats/cache_hit_ratio | None | Gauge |
redis.googleapis.com/commands/calls | Count | Sum |
redis.googleapis.com/commands/usec_per_call | Microseconds | Gauge |
Logs
With Log Collection turned on, SigNoz collects these logs for your Memorystore for Redis instances:
| Log | What it contains | GCP setup needed |
|---|---|---|
| Admin Activity audit logs | Changes to instances, such as create, update, delete, failover, upgrade, import, and export | None. GCP always writes these. |
| Maintenance logs | When Google starts and finishes a maintenance update on an instance | None |
| Data Access audit logs | Reads of instance details, such as getting or listing instances and fetching the AUTH string | Turn on Data Access audit logs for Memorystore for Redis |
With One-Click Integration, SigNoz applies this log sink filter for you. With Manual Setup, use it when you create your log sink:
resource.type="redis_instance"
OR (protoPayload.serviceName="redis.googleapis.com"
AND protoPayload.methodName:".CloudRedis.")
OR (log_id("maintenance.googleapis.com/activity_log")
AND labels.activity_type_name:"CloudRedisRollout")Troubleshooting
No logs after turning on Log Collection. These logs only appear when an instance changes or goes through maintenance, so a quiet project may show nothing at first. Open Logs Explorer in the GCP Console and filter on protoPayload.serviceName="redis.googleapis.com" to see what GCP has written.
No metrics at all (One-Click). Confirm the instances run in the project the agent is deployed in, and that Metric Collection is on and saved. See the One-Click troubleshooting for agent and Collector checks.
Logs don't arrive (Manual). If Logs Explorer in GCP shows the logs but SigNoz doesn't, work back through the log pipeline: the push subscription must reach the Collector, and the sink's writer identity needs roles/pubsub.publisher on the topic. See Collect logs troubleshooting.
A dashboard panel is empty (Manual). The metric backing that panel is missing from your metrics_list. Compare the Data Collected tab against your otel-collector-config.yaml, add what's missing, and repeat step 3.
No Memorystore metrics at all (Manual). Confirm the signoz-integration-collector service account holds roles/monitoring.viewer on the project in project_id, and that the Cloud Monitoring API is enabled there. Then check the Cloud Run logs for googlecloudmonitoring receiver errors.
Cache hit ratio looks wrong right after a restart. The ratio is derived from counters that reset when the instance restarts. Check server/uptime before reading too much into a sudden change.
Next steps
- Create alerts on memory usage ratio approaching eviction, rejected connections, or a falling cache hit ratio.
- Build custom dashboards to correlate cache behavior with application latency.
- Monitor Cloud SQL for PostgreSQL if your stack also uses a managed database.
Get Help
If you need help with the steps in this topic, please reach out to us on SigNoz Community Slack. If you are a SigNoz Cloud user, please use in product chat support located at the bottom right corner of your SigNoz instance or contact us at cloud-support@signoz.io.