The problem/use-case that the feature addresses

Help administrators to more quickly assess the nature of the query traffic.

Description of the feature

Calculate the percentages of basic query categories (gets, sets, mutations, deletions, hashmaps, lists, etc.)

Calculate query size metrics (mean, median, mode, 99th percentile, min, max), and query response size metrics (mean, median, mode, 99th percentile, min, max).

Alternatives you've considered

bc

Comment From: oranagra

@mcandre what you're describing is not actually part of Redis (server). The MONITOR command doesn't have an end, it'll keep streaming commands forever. What you want is a tool that connects to redis, sends the MONITOR command and disconnects after a predetermined time (e.g. 10 seconds), or Ctrl+C. And then prints the statistics. I don't think such a tool is suitable for redis-cli (which is mostly a simple / dumb interface). I would suggest to write such a thing in python or some other high level language (so probably not part of this github repo).

But for such a thing to be possible (and simple), the MONITOR output should be changed to be more structured (currently intended for human eyes, not for software processing), and it should contain more information (like the responses).

I think we're currently tracking planned changes to this command in https://github.com/redis/redis/pull/6832

Please let me know if I got it right.