Permalink
Browse files

added hits and misses metrics

  • Loading branch information...
Andre Lewis
Andre Lewis committed Oct 2, 2012
1 parent 56b0666 commit 635942e8b3e1751546a6578f2276b7197a44ad79
Showing with 2 additions and 0 deletions.
  1. +2 −0 redis-info/redis-info.rb
View
@@ -37,6 +37,8 @@ def build_report
report(:uptime_in_hours => info['uptime_in_seconds'].to_f / 60 / 60)
report(:used_memory_in_mb => info['used_memory'].to_i / MEGABYTE)
report(:used_memory_in_kb => info['used_memory'].to_i / KILOBYTE)
+ report(:hits => info['keyspace_hits'].to_i)
+ report(:misses => info['keyspace_misses'].to_i)
report(:role => info['role'])
report(:up =>1)

0 comments on commit 635942e

Please sign in to comment.