Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added hits and misses metrics

  • Loading branch information...
commit 635942e8b3e1751546a6578f2276b7197a44ad79 1 parent 56b0666
Andre Lewis authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  redis-info/redis-info.rb
View
2  redis-info/redis-info.rb
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.