Skip to content

Latest commit

 

History

History
 
 

mcache

Memcache Check

Overview

The Agent's memcache check lets you track memcache's memory use, hits, misses, evictions, fill percent, and much more.

Setup

Installation

The memcache check is included in the Datadog Agent package, so you don't need to install anything else on your memcache servers.

Configuration

  1. Edit the mcache.d/conf.yaml file, in the conf.d/ folder at the root of your Agent's configuration directory. See the sample mcache.d/conf.yaml for all available configuration options:

      init_config:
    
      instances:
        - url: localhost  # url used to connect to the memcached instance
          port: 11212 # optional; default is 11211
      #    socket: /path/to/memcache/socket # alternative to url/port; 'dd-agent' user must have read/write permission
          options:
            items: false # set to true to collect items stats
            slabs: false # set to true to collect slabs stats
      #    tags:
      #    - optional_tag
  2. Restart the Agent to begin sending memcache metrics to Datadog.

Validation

Run the Agent's status subcommand and look for mcache under the Checks section.

Data Collected

Metrics

See metadata.csv for a list of metrics provided by this check.

The check only collects memcache.slabs.* metrics if you set options.slabs: true in mcache.d/conf.yaml. Likewise, it only collects memcache.items.* metrics if you set options.items: true.

Events

The Mcache check does not include any events at this time.

Service Checks

memcache.can_connect:

Returns CRITICAL if the Agent cannot connect to memcache to collect metrics, otherwise OK.

Troubleshooting

Need help? Contact Datadog Support.

Further Reading