Memcached is an open source, high-performance, distributed memory object caching system. This plugin gathers memory usage, connections, evictions, etc.

Setup & Configuration

The Memcached plugin is included with the Atatus Infra agent by default, please follow the below section to enable.

  1. Copy the Memcached example configuration file.

    copy
    icon/buttons/copy
    cd /etc/atatus-infra-agent/conf.d/memcached.d/
    sudo cp memcached.yml.template memcached.yml
    
  2. Update the file /etc/atatus-infra-agent/conf.d/memcached.d/memcached.yml with below configurations.

    copy
    icon/buttons/copy
    # Metrics section
    metrics:
    
      - hosts: ["localhost:11211"]
    
  3. Restart the atatus infrastructure agent.

    copy
    icon/buttons/copy
    sudo service atatus-infra-agent restart
    

Metrics

Name Description Type
memcached.stats.connections.current Number of open connections to this Memcached server, should be the same value on all servers during normal operation. long
memcached.stats.read.bytes Total number of bytes received from the network by this server. long
memcached.stats.written.bytes Total number of bytes send to the network by this server. long
memcached.stats.cmd.get Number of "get" commands received since server startup not counting if they were successful or not. long
memcached.stats.cmd.set Number of "set" commands serviced since startup. long
memcached.stats.evictions Number of objects removed from the cache to free up memory for new items because Memcached reached it’s maximum memory setting (limit_maxbytes). long