0
0
Redisquery~5 mins

Monitoring with INFO command in Redis

Choose your learning style9 modes available
Introduction

The INFO command helps you see how your Redis server is doing by showing important details about its health and usage.

You want to check how much memory Redis is using right now.
You need to see how many clients are connected to your Redis server.
You want to find out how many commands Redis has processed since it started.
You want to monitor Redis performance to spot problems early.
You want to check Redis uptime to know how long it has been running.
Syntax
Redis
INFO [section]

The INFO command can be used alone or with a section name to get specific info.

Common sections include server, memory, clients, stats, and all.

Examples
Shows general information about the Redis server.
Redis
INFO
Shows only memory-related information.
Redis
INFO memory
Shows information about connected clients.
Redis
INFO clients
Sample Program

This command shows memory usage details of the Redis server.

Redis
INFO memory
OutputSuccess
Important Notes

The output is divided into sections starting with a hashtag (#) and section name.

Each line shows a key and its value separated by a colon (:).

You can use this command regularly to monitor Redis health and performance.

Summary

The INFO command gives you a snapshot of Redis server status.

You can ask for all info or just one section like memory or clients.

It helps you keep Redis running smoothly by checking key stats.