Memcached,redis Monitoring Detailed

Source: Internet
Author: User
Tags memcached

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.