First, Monitoring Collection basis:
Similar throughput, number of cached queries, hit rate, etc.
Second, The main monitoring indicator analysis, through the stats command to collect:
Uptime # #memcached运行时长
Curr_connections # #当前的连接数
Total_connections # #曾经打开的连接总数
Connection_structures # #服务器分配的连接数
Cmd_get # #执行get命令总数
Cmd_set # #执行set命令总数
Get_hits # #get命中次数
Get_misses # #get未命中次数
Bytes_read # #读取字节总数
Bytes_written # #写入字节总数
Bytes # #服务器当前存储占用的内存 (bytes)
Limit_maxbytes # #分配的内存大小 (bytes)
Evictions # #为获取内存而删除的item个数
Third, Zabbix Agent Configuration:
Userparameter=memcached[*], (echo stats; Sleep 1) | Telnet 192.168.10.204 11211 2>&1 | awk '/stat $/{print $NF} '
Key can be read directly from the Web.
Four, Redis Monitoring indicators:
Similar throughput, number of cached queries, hit rate, etc.
Five, mainly through the REDIS-CLI info to monitor:
Uptime_in_days # #启动经过的天数
Connected_clients # #连接的客户端数
Blocked_clients: # #正在等待阻塞命令 (Blpop, Brpop, Brpoplpush) Number of clients
Used_memory_peak_huma: # #reids所用内存的高峰期
Used_memory: # #运行起来使用的内存数
Expired_keys: # #过期的key数量
Evicted_keys: # #删除过期的key数量
Keyspace_misses: # #没命中的key数量
keyspace_hits: # #命中的key数量
Connected_slaves: # #已连接的从服务器数
Rejected_connections: # #因为超过最大连接数被拒接的请求数量
Six, zabbix_agent configuration file:
Userparameter=redis_stats[*],/usr/local/bin/redis-cli-h 192.168.10.203-p 6379 info|grep $1|cut-d:-f2
Zatree Plug-in
This article is from the "11949850" blog, please be sure to keep this source http://11959850.blog.51cto.com/11949850/1877639
Memcached,redis Monitoring Detailed