Redislive of Redis cluster monitoring tools

Source: Internet
Author: User
Tags git clone redis cluster install redis

Here is a description of the Redislive installation deployment of the Redis cluster Monitoring UI tool.
Plainly, Redislive is a free and open source based on Python, Tornado reids monitoring tools, in the form of the web to show the Redis memory, key, instance data and other information. Redislive official website installs Python

Because Redislive is based on Python, the machine must first install Python, you can enter Python to monitor whether the machine is installed Python, the following means that you have installed OK, otherwise need to install (this process can be Google, not to repeat here).

[Root@spg sbin]# python
python 2.7.5 (default, June 2014, 18:11:42) 
[GCC 4.8.2 20140120 (Red Hat 4.8.2-16)] on L inux2
Type ' help ', ' copyright ', ' credits ' or ' license ' for the more information.
>>>
Install tornado, etc.

Redislive is the Web monitoring interface, so you need a Web container, where you need to use Tornado, which can be quickly installed using the following methods.

[ROOT@SPG sbin]# pip Install tornado

You may have an error indicating that the PIP is not installed, and you need to install the PIP.
Specific can refer to: https://pip.pypa.io/en/stable/installing/
After the PIP has been successfully installed, continue to install Tornado, Redis, Python-dateutil

[ROOT@SPG sbin]# pip install tornado
[ROOT@SPG sbin]# pip install Redis
[ROOT@SPG sbin]# pip Install Python-dateut Il

If the Python version is less than 2.7, you will also need to install Argparse

[ROOT@SPG sbin]# pip Install Argparse
Install REDISL
[Root@spg sbin]# git clone https://github.com/kumarnitin/RedisLive.git

or download the configuration directly on the GitHub redislive

Enter SRC, copy redis-live.conf.example, change to redis-live.conf

{"
    redisservers":
    [
        {
            "server": "localhost",
            "port": 6380
        },
        {
            "server": " localhost ",
            " port ": 6381
        },
        {
            " server ":" localhost ",
            " port ": 6382
        }
    ],
    " Datastoretype ":" Redis ","
    redisstatsserver ":
    {
        " server ":" localhost ",
        " port ": 6383
    },
    "Sqlitestatsstore":
    {
        ' path ':  ' to your SQL Lite file '
    }
}
Configuration Description:

Setting up the redis-server to be monitored in the redisservers;
Datastoretype decided to use that type of data store,
If it is Redis, use Redisstatsserver as the target of data storage;
If it is SQLite, use Sqlitestatsstore as the target for data storage. Start redislive

The redislive is divided into two parts, one for the monitoring script and the other for the Web service, so it needs to be started separately.

[Root@spg sbin]#./redis-monitor.py--duration=120
[Root@spg sbin]#./redis-live.py

Use –duration to specify how long to fetch the Reids data

At this point, access to http://127.0.0.1:8888/index.html can access redislive, the interface is as follows

At this point, the redislive installation is complete.
See:
Http://www.nkrode.com/article/real-time-dashboard-for-redis

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.