Search code examples
redismonitor

Trying to understand REDIS Monitor command


I'm trying to understand MONITOR command that is available in Redis and how can I use effectively to determine the load of my application. What I don't understand is how do I read the information that is being shown on the CLI. Like, I know that the number before the IP Address is the 'DB Index' but what can I infer from that number?

Example that is available on MONITOR is:.

$ redis-cli monitor
1339518083.107412 [0 127.0.0.1:60866] "keys" "*"
1339518087.877697 [0 127.0.0.1:60866] "dbsize"
1339518090.420270 [0 127.0.0.1:60866] "set" "x" "6"
1339518096.506257 [0 127.0.0.1:60866] "get" "x"
1339518099.363765 [0 127.0.0.1:60866] "del" "x"
1339518100.544926 [0 127.0.0.1:60866] "get" "x"

I'm unable to understand the significance of '1339518083.107412'.


Solution

  • The first part is the timestamp in the form seconds.microseconds.