Skip to content

GCP Memorystore for Memcached

Collect GCP Memorystore for Memcached metrics for node connections, CPU, memory, cache hit ratio, operations, and network traffic.

Configuration

Install Func

We recommend enabling TrueWatch Integration - Extensions - Managed Func. All prerequisites are installed automatically; continue with the script installation.

If you deploy Func yourself, see Self-deploying Func.

Install Script

  1. Log in to the Func console, click [Script Market], open the TrueWatch Script Market, and search for integration_gcp_memcached.
  2. Click [Install], then enter the required parameters: account file name, Target Principal, and account name.
  3. Click [Deploy Startup Script]. The system automatically creates a Startup script set and configures the corresponding startup script.
  4. After enabling it, find the automatic trigger configuration under "Management / Automatic Trigger Configuration". Click [Execute] to run it immediately, then review the task record and logs.

Verification

  1. Under "Management / Automatic Trigger Configuration", confirm that the task exists and check its task records and logs for errors.
  2. In TrueWatch, check "Infrastructure / Custom" for the corresponding asset information.
  3. In TrueWatch, check "Metrics" for the gcp_memcache measurement and its monitoring data.

Metrics

GCP Memorystore for Memcached metrics are stored in the gcp_memcache measurement. The original metrics come from the Cloud Monitoring memcache.googleapis.com/ namespace. For the complete metric catalog, see Google Cloud Memorystore for Memcached metrics.

The tags in the table below come from actual collected data. used distinguishes used from unused cache memory, mode identifies the CPU mode, and command with response_type separates operation results.

Metric Original Metric Description Tags Unit
node_active_connections node/active_connections Number of active connections to the Memcached node location, project_id, project_name, instance_id, account_name, node_id, monitor_resource_type, cloud_provider Count
node_cache_memory node/cache_memory Memory allocated to the cache on the node location, project_id, project_name, used, instance_id, account_name, node_id, monitor_resource_type, cloud_provider Bytes
node_cpu_usage_time node/cpu/usage_time CPU usage time of the Memcached process location, project_id, project_name, instance_id, account_name, node_id, monitor_resource_type, mode, cloud_provider s{CPU}
node_cpu_utilization node/cpu/utilization CPU utilization of the Memcached node location, project_id, project_name, instance_id, account_name, node_id, monitor_resource_type, cloud_provider %
node_eviction_count node/eviction_count Number of cache items evicted from the node due to space constraints location, project_id, project_name, instance_id, account_name, node_id, monitor_resource_type, cloud_provider Count
node_hit_ratio node/hit_ratio Cache request hit ratio location, project_id, project_name, instance_id, account_name, node_id, monitor_resource_type, cloud_provider %
node_items node/items Number of cache items stored on the node location, project_id, project_name, instance_id, account_name, node_id, monitor_resource_type, cloud_provider Count
node_memory_utilization node/memory/utilization System memory utilization of the node location, project_id, project_name, instance_id, account_name, node_id, monitor_resource_type, cloud_provider %
node_operation_count node/operation_count Number of cache operations grouped by command and response type location, project_id, project_name, instance_id, account_name, command, response_type, node_id, monitor_resource_type, cloud_provider Count
node_received_bytes_count node/received_bytes_count Number of bytes received by the node location, project_id, project_name, instance_id, account_name, node_id, monitor_resource_type, cloud_provider Bytes
node_sent_bytes_count node/sent_bytes_count Number of bytes sent by the node location, project_id, project_name, instance_id, account_name, node_id, monitor_resource_type, cloud_provider Bytes
node_uptime node/uptime Node uptime location, project_id, project_name, instance_id, account_name, node_id, monitor_resource_type, cloud_provider s

Objects

View collected GCP Memorystore for Memcached instance objects under "Infrastructure - Resource Catalog".

{
  "measurement": "gcp_memcache_instance",
  "tags": {
    "account_name": "TWT GCP Integration Memcached",
    "cloud_provider": "gcp",
    "display_name": "TWT Memcached Minimal",
    "discovery_endpoint": "10.12.177.67:11211",
    "instanceId": "twt-memcached-min",
    "projectId": "twt-gcp-integration",
    "projectName": "TWT GCP Integration",
    "location": "asia-southeast1",
    "state": "READY",
    "memcacheVersion": "MEMCACHE_1_6_15"
  },
  "fields": {
    "authorizedNetwork": "projects/twt-gcp-integration/global/networks/default",
    "createTime": "2026-08-18T03:30:10.725821543Z",
    "effectiveMaintenanceVersion": "maintenance_version_20260601",
    "memcacheFullVersion": "memcached-1.6.15",
    "nodeCount": 1,
    "nodeConfig": {
      "cpuCount": 1,
      "memorySizeMb": 1024
    },
    "resourceCreateTime": "2026-08-18T03:30:10.725821543Z",
    "updateTime": "2026-08-18T03:36:01.987645137Z"
  }
}

Note: Fields under tags and fields may change in future updates.