Redis Module: 'info commandstats' does not show custom module commands, but 'monitor' does

8 views
Skip to first unread message

Zongheng Yang

unread,
Jan 17, 2018, 11:59:41 PM1/17/18
to Redis DB
Is this by design?  (If a redis-server loaded with a custom module crashes, the stacktrace does contain custom commands, IIRC.  However I'd like to get this piece of information in the normal case.)

Is there a way to ask redis to output timing information for custom module commands via 'info commandstats'?

Thanks,
Zongheng

Dvir Volk

unread,
Jan 18, 2018, 2:44:35 AM1/18/18
to redi...@googlegroups.com
I'm actually seeing commandstats on module commands. Perhaps you Redis version is out of date
Hot off my dev instance (notice the last line):

127.0.0.1:6379> info commandstats
# Commandstats
cmdstat_command:calls=1,usec=812,usec_per_call=812.00
cmdstat_info:calls=1,usec=52,usec_per_call=52.00
cmdstat_FT.AGGREGATE:calls=3,usec=83,usec_per_call=27.67


--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+u...@googlegroups.com.
To post to this group, send email to redi...@googlegroups.com.
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.

Zongheng Yang

unread,
Jan 18, 2018, 3:42:59 PM1/18/18
to redi...@googlegroups.com
Thanks for pointing that out.  I did not investigate further.

You received this message because you are subscribed to a topic in the Google Groups "Redis DB" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/redis-db/Eb4tLjaTSdA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to redis-db+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages