Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to end Redis monitoring

Tags:

redis

In Redis there's a MONITOR command that is quite handy to watch all the commands that are being processed.

Once you've started monitoring, is there any way to stop monitoring from the same session?

If you kill the connection, does the monitoring end (as opposed to resource-intensive monitoring continuing on the server)?

like image 632
Gigi Avatar asked Feb 17 '15 12:02

Gigi


1 Answers

There is no API to do it - just close the connection.

The redis-cli command does not implement anything specific when the user hits CTRL-C to interrupt the program. Closing the connection should stop the monitoring.

like image 53
Didier Spezia Avatar answered Oct 12 '22 17:10

Didier Spezia