blackbird Redis plugin
This plugin gets various information from Redis and sends the data to the backend Currently, you can monitor the following information:
CONFIG GET`` maxmemory
and maxclients
GET
/ SET
)Operation check is done with 2.6.x and 2.8.x
Install
Please install by referring to here
Install Redis plugin
You can either use setup.py or rpm.
git clone https://github.com/Vagrants/blackbird-redis.git
cd blackbird-redis
python setup.py install
yum install blackbird-redis --enablerepo=blackbird
config is in /etc/blackbird/conf.d/redis.cfg
ini:/etc/blackbird/conf.d/redis.cfg
[redis]
module = redis
# if you set 'requirepass' in redis.conf, please set auth.
#
#auth = password
# for response time check
# if you do not want to check, please comment out.
response_check_key = __zabbix_check
# default values
#
#host = 127.0.0.1
#port = 6379
#db = 0
If you have set requirepass
in redis.conf
, set ʻauth = password
response_check_key is the name of the key for
GET/
SET` when measuring response time.
Reboot blackbird
when you're done
sudo /etc/init.d/blackbird restart
Zabbix Template is exported from Zabbix 2.2 in github repository Please import to Zabbix and apply to the target server
However, there is a problem that this Template, ** Trigger dependency error cannot be imported if it is 2.4 series ** I can import by removing the checkbox in the Trigger part when importing ...
** If the host name on Zabbix and the host name of the server on which blackbird is running are different, you need to set the hostname on /etc/blackbird/conf.d/redis.cfg
**
Please match with Zabbix
ini:/etc/blackbird/conf.d/redis.cfg
hostname = your_static_hostname
You can also change the monitoring interval (60 seconds by default, 600 seconds for LLD).
ini:/etc/blackbird/conf.d/redis.cfg
interval = 30
lld_interval = 300
This plugin measures the response time of GET
/ SET
and collects data as Performance --Get response time
and Performance --Set response time
on Zabbix.
** This response time, but not pure response time **
In fact, it also includes time to do various things internally with python.
Therefore, please consider it as ** reference level **.
(Maybe I will make it seriously in the future)
LLD discovers ʻINFO` Keyspace information
# Keyspace
db0:keys=123,expires=0,avg_ttl=9
db1:keys=2345,expires=456,avg_ttl=99
db2:keys=34567,expires=789,avg_ttl=999
...
standalone``` slave
sentinel
, but it may be separated in the future.Recommended Posts