Is there a programmatic way to obtain the keyspace_hits
and keyspace_miss
values programmatically through some REST or Groovy API?
You can get these stats programmatically through the normal Redis interface:
> INFO
...
keyspace_hits:414197256
keyspace_misses:661663278
...
See the INFO command documentation for more.
Redis doesn't speak HTTP; it only speaks the Redis protocol. You could put webdis in front if required.
You can usually get all the info you need from just connecting to the server with any redis client.
You can get all the info by using this command Info.
There is an interesting article here that the Author shows how to trace gets and sets and messing around with the redis source code.
There is some third party tools that lets you monitor redis a quick google search you give you a few like this one. (I am not endorsing them it is just an example).
There is also the monitor command in redis that shows you everything as it happens which you could make your own monitoring app.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With