If you’re a developer or DevOps engineer working with databases, there is a high chance that you would have heard of Redis. You may also be using it in your applications. Redis is an immensely popular in-memory database used in various cases needing high performance. You’d need to monitor the performance and analyse the Redis database and clusters in many instances.
RedisInsight is the go-to tool that’ll let you monitor and manage your Redis database easily. It is a GUI which is very comprehensive and user-friendly. Originally it was not developed by Redis Labs, but it was acquired by Redis Labs later in 2019.
- RedisInsight can track the performance of your Redis database. It can track metrics like CPU usage, Latency, cluster performance, cluster health, Memory usage, and many more.
- The GUI is very intuitive and user-friendly. It displays data visually in the form of graphs, charts, and trees.
- It gives you various insights into your database. You can find clusters that are underperforming. This helps you find the bottlenecks and optimize the whole database.
- RedisInsight lets you manage your keys in bulk. You can filter, visualize, delete, and browse your Redis keys.
- You can perform bulk CRUD operations in your databases as well. The Monaco Editor provides assistance with the auto-completion of writing queries. It also has features like syntax highlighting and developer shortcuts as well.
- The automatic refresh feature of RedisInsight helps to give you real-time updates on your Redis database.
Essential Prerequisites for RedisInsight Installation
You should take care of the following prerequisites before Installing Redis:-
- Your Linux distro should be supported by RedisInsight.
- Having sudo or root access is recommended
- Your system should meet the system requirements for RedisInsight. Some of the system requirements are:-
- 8 GB of RAM
- A modern 64-bit processor
- A stable internet connection to download RedisInsight.
Step-by-Step Installation of RedisInsight on Linux
RedisInsight is an indispensable tool for developers and DevOps engineers working with Redis databases. This comprehensive GUI tool offers real-time performance metrics, intuitive data visualization, and bulk management of Redis keys. Installing RedisInsight on a Linux system is straightforward. Ensure your system meets the prerequisites like having 8GB of RAM and a modern 64-bit processor. You can download RedisInsight from the official website or use package managers like Snap. Once installed, running RedisInsight is as simple as executing a single command.
RedisInsight can be downloaded in multiple ways on Linux. The common way is to download the Linux AppImage or Debian from the official website. You can also install it through Snap package manager which is very convenient.
Installing RedisInsight through Snap
Snap is a package manager that contains RedisInsight. You can install it through snap by the following command:-
sudo snap install redisinsight
Installing RedisInsight through the official website
The RedisInsight packages are available in Debian and AppImage forms. The steps to download and install them are:-
- Download the appropriate RedisInsight version for your system from the official site.
- Open the terminal in the directory where the RedisInsight is downloaded.
- Make the files executable by the following command:-
chmod +x redisinsight-linux64-<version>
Change the version according to the downloaded file.
Now RedisInsight is downloaded and you use it.
Running RedisInsight: The Commands You Need
To run RedisInsight on Linux you can use the following command:-
Or you can also access RedisInsight UI from the browser using the URL:-
RedisInsight: Usage Tips and Tricks
Whenever you open RedisInsight, the first step you’d do is to connect your database. You can connect to various kinds of Redis databases like Redis Cloud Pro, Redis enterprise cluster, Redis database, etc.
Enter the details required and Add Redis Database.
You can use the CLI from the “CLI” option on the left side of the UI.
To use the Redis commands through the command section use the prefix >>.
>> set server:name LinuxForDevices
Adding Databases in RedisInsight: A Simple Guide
You can add a database in RedisInsight automatically, programmatically and by the GET URL as well.
The steps to automatically connect the database are:-
- Open the RedisInsight Ui and Add Redis Database.
- From the options select the Automatically Discover Databases option.
- You’ll get to choose the databases like Redis Enterprise, Redis Enterprise Cloud, etc. Choose the one appropriately.
- You’ll get the dialogue box to enter connection details.
- After entering the details click on the “Discover Database” option.
- You’ll get the available databases and you can choose the preferred one.
You can also add a database through GET URL by:-
URL : /add/ Method : GET
Wrapping Up: Unlock the Power of RedisInsight
RedisInsight is a useful tool for monitoring and analysing your Redis database. It is used in a lot of applications and provides a lot of insights into your Redis databases, cloud databases, and clusters as well.
In this article, we’ve listed the prerequisites before installation so make sure that your system meets the requirements. You can install RedisInsight through snap package manager and by installing it from the website as well. After installation, we’ve also written the initial setup and basic ways to use RedisreInsight as well.