Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support check of total keys per database in check_redis? #35

Open
mindbat opened this issue Jul 25, 2013 · 3 comments
Open

Support check of total keys per database in check_redis? #35

mindbat opened this issue Jul 25, 2013 · 3 comments

Comments

@mindbat
Copy link

mindbat commented Jul 25, 2013

I'm monitoring a redis server with 5 different db's. They've each got different ranges for the number of keys that would be considered normal for that db.

I'd like to be able to monitor the number of keys in each db separately. It looks like redis returns this data via INFO, and it's captured in the plugin while calculating the total_keys amount.

Any chance the plugin could be altered to support checking the number of keys used in a single database?

@willixix
Copy link
Owner

could you explain more and post output from the plugin (with -A so all returned data can be seen) pointing which exact data you want to set threshold on?

@willixix
Copy link
Owner

I'm going through open questions/issues again. Single keys are indeed captured like this:
db15_keys=73043995 db15_expires=64177 db0_keys=26

You can set threshold specifically on db0_keys for above for example. And if you want threshold for all databases you can use regex pattern matching, so this would be something like:
--option=PATTERN:db*_keys,WARN:..,CRIT:...

@mindbat
Copy link
Author

mindbat commented Aug 28, 2013

thanks, willixix, i'll give that a shot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants