Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Memcached é um armazenamento de valores-chave na memória para pequenas porções de dados arbitrários (strings, objetos) de resultados de chamadas de banco de dados, chamadas de API ou renderização de página.
Para mais informações, acesse memcached.org.
Essa funcionalidade está disponível apenas para agentes em execução no Linux. Não está disponível no Windows.
Descoberta
Mesmo que o plug-in Memcached não esteja configurado, o Cloud Monitoring vai descobrir os serviços do Memcached em execução no projeto do Cloud Platform por meio de:
pesquisas com o termo memcached em nomes de instâncias;
verificação de portas abertas para 11211 usando regras de firewall.
Para ver as métricas do Memcached, faça o seguinte:
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-08-18 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)."]]