[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-18。"],[],[],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)."]]