The Agent's memcache check lets you track memcache's memory use, hits, misses, evictions, fill percent, and much more.
The memcache check is included in the Datadog Agent package, so you don't need to install anything else on your memcache servers.
-
Edit the
mcache.d/conf.yaml
file, in theconf.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
-
Restart the Agent to begin sending memcache metrics to Datadog.
Run the Agent's status
subcommand and look for mcache
under the Checks section.
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
.
The Mcache check does not include any events at this time.
memcache.can_connect
:
Returns CRITICAL if the Agent cannot connect to memcache to collect metrics, otherwise OK.
Need help? Contact Datadog Support.