Stay organized with collections
Save and categorize content based on your preferences.
Memcached is an in-memory key-value store for small chunks of arbitrary data
(strings, objects) from results of database calls, API calls, or page rendering.
For more information visit memcached.org.
This functionality is only available for agents running on Linux. It is
not available on Windows.
Discovery
Even if the memcached plugin is not configured, Cloud Monitoring will
discover memcached services running in your Cloud Platform project by:
Searching instance names for memcached
Checking for ports opened to 11211 via firewall rules
To see the metrics for Memcached, do the following:
In the Google Cloud console, go to the Dashboards page:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-29 UTC."],[],[],null,["# Memcached plugin\n\nMemcached is an in-memory key-value store for small chunks of arbitrary data\n(strings, objects) from results of database calls, API calls, or page rendering.\nFor more information visit [memcached.org](http://www.memcached.org/).\n\nThis functionality is only available for agents running on Linux. It is\nnot available on Windows.\n| **Note:** You can now collect metrics from your Memcached instance using the [Ops Agent](/stackdriver/docs/solutions/agents/ops-agent), the primary and preferred agent for collecting telemetry from your Compute Engine instances. For details, see [configuring the Ops Agent for\n| Memcached](/stackdriver/docs/solutions/agents/ops-agent/third-party/memcached).\n\nDiscovery\n---------\n\nEven if the memcached plugin is not configured, Cloud Monitoring will\ndiscover memcached services running in your Cloud Platform project by:\n\n- Searching instance names for **memcached**\n- Checking for ports opened to **11211** via firewall rules\n\nTo see the metrics for Memcached, do the following:\n\n1. In the Google Cloud console, go to the **Dashboards** page:\n\n [Go to **Dashboards**](https://console.cloud.google.com/monitoring/dashboards)\n\n \u003cbr /\u003e\n\n If you use the search bar to find this page, then select the result whose subheading is\n **Monitoring**.\n2. Select the **Memcached** dashboard from the list.\n\nConfiguring Monitoring to monitor memcached\n-------------------------------------------\n\nAfter you [install the monitoring agent](/monitoring/agent/monitoring/installation), use the following\ninstructions to configure the memcached plugin on your instances.\n\n### Enabling the memcached monitoring plugin\n\nOn your VM instance, download [memcached.conf](https://raw.githubusercontent.com/Stackdriver/stackdriver-agent-service-configs/master/etc/collectd.d/memcached.conf)\nfrom the [GitHub configuration repository](https://github.com/Stackdriver/stackdriver-agent-service-configs)\nand place it in the directory `/etc/stackdriver/collectd.d/`: \n\n (cd /etc/stackdriver/collectd.d/ && sudo curl -O https://raw.githubusercontent.com/Stackdriver/stackdriver-agent-service-configs/master/etc/collectd.d/memcached.conf)\n\nAfter adding the configuration file, restart the monitoring agent by running the following command: \n\n sudo service stackdriver-agent restart\n\nFor more information on the `collectd` `memcached` plugin, see\n[Plugin:memcached](https://collectd.org/wiki/index.php/Plugin:memcached).\n\nWhat is monitored\n-----------------\n\nThe full list of metrics the Memcached plugin monitors is at\n[Agent metrics: memcached](/monitoring/api/metrics_agent#agent-memcached)."]]