Memcached plugin 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 visitmemcached.org.
This functionality is only available for agents running on Linux. It isnot available on Windows.
Note: You can now collect metrics from your Memcached instance using theOps Agent, the primary andpreferred agent for collecting telemetry from your Compute Engine instances.For details, seeconfiguring the Ops Agent forMemcached.Discovery
Even if the memcached plugin is not configured, Cloud Monitoring willdiscover memcached services running in your Cloud Platform project by:
- Searching instance names formemcached
- Checking for ports opened to11211 via firewall rules
To see the metrics for Memcached, do the following:
In the Google Cloud console, go to the
Dashboards page:If you use the search bar to find this page, then select the result whose subheading isMonitoring.
- Select theMemcached dashboard from the list.
Configuring Monitoring to monitor memcached
After youinstall the monitoring agent, use the followinginstructions to configure the memcached plugin on your instances.
Enabling the memcached monitoring plugin
On your VM instance, downloadmemcached.conf from theGitHub configuration repository and place it in the directory/etc/stackdriver/collectd.d/:
(cd /etc/stackdriver/collectd.d/ && sudo curl -O https://raw.githubusercontent.com/Stackdriver/stackdriver-agent-service-configs/master/etc/collectd.d/memcached.conf)After adding the configuration file, restart the monitoring agent by running the following command:
sudo service stackdriver-agent restartFor more information on thecollectdmemcached plugin, seePlugin:memcached.
What is monitored
The full list of metrics the Memcached plugin monitors is atAgent metrics: memcached.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-12-15 UTC.