Redis is an open-source, networked software project that implements data structure servers. Identify and resolve issues with Redis-based apps before end users are affected with Site24x7 plugins.
This document details how to configure the Redis plugin and the monitoring metrics for providing in-depth visibility into the performance, availability, and usage stats of Redis servers.
The Various out-of-the-box metrics we support are:
"memory_used" gives the total amount of memory in bytes that is used by the Redis server. If it exceeds physical memory, system will start swapping causing severe performance degradation.
"memory_used_peak" metric calculates and displays the highest amount of memory in bytes consumed by the Redis server.
The metric "cpu_used_sys" gets the total amount of system CPU consumed by the Redis server. High CPU usage is not bad as long as it doesn't exceed CPU limit.
The metric "cpu_used_user" records the total amount of user CPU consumed by the Redis server.
The metric "cpu_used_user_children" records the total amount of user CPU consumed by other background processes.
Get the total amount of system CPU consumed by background processes with the metric "cpu_used_sys_children".
Get the total number of failed key lookups in the main dictionary that have taken place in the system using the metric "keyspace_misses".
Use the metric "keyspace_hits" and get the total number of successful key lookups in the main dictionary that have taken place in the system.
Get the total number of connections rejected using the metric "rejected_conn". The connections are rejected whenever client limit is reached.
Use the metric "total_conn_rec" and get the total number of connections accepted by the Redis server.
Get the total number of slave connections made to the Redis server with the metric "conn_slaves".
The metric "conn_clients" records the total number of client connections made to the Redis server. This count will exclude connections from slaves.
pip install redis
Note: pip is a package management system that is used to install and manage software packages written in Python.
yum install python-devel
yum install python-pip (or)
easy_install pip
apt-get -y install python-pip
cd /opt/site24x7/monagent/plugins/
mkdir redis
cd redis
wget https://raw.githubusercontent.com/site24x7/plugins/master/redis/Redis.py
Redis plugin file location - /opt/site24x7agent/monagent/plugins/redis/Redis.py
#Config Section:
REDIS_HOST = "localhost"
REDIS_PORT = "6379"
REDIS_USERNAME = "root"
REDIS_PASSWORD = ""
REDIS_DBS = "0"
REDIS_QUEUES = ""