Memcached plugin

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:

  1. In the Google Cloud console, go to the  Dashboards page:

    Go to Dashboards

    If you use the search bar to find this page, then select the result whose subheading is Monitoring.

  2. Select the Memcached dashboard from the list.

Configuring Monitoring to monitor memcached

After you install the monitoring agent, use the following instructions to configure the memcached plugin on your instances.

Enabling the memcached monitoring plugin

On your VM instance, download memcached.conf from the GitHub 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 restart

For more information on the collectd memcached plugin, see Plugin:memcached.

What is monitored

The full list of metrics the Memcached plugin monitors is at Agent metrics: memcached.