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.
Copy the Memcached example configuration file.
copycd /etc/atatus-infra-agent/conf.d/memcached.d/ sudo cp memcached.yml.template memcached.yml
Update the file
/etc/atatus-infra-agent/conf.d/memcached.d/memcached.yml
with below configurations.copy# Metrics section metrics: - hosts: ["localhost:11211"]
Restart the atatus infrastructure agent.
copysudo 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 |