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

redis 3 monitoring error #14

Open
woutervb opened this issue Mar 15, 2016 · 0 comments
Open

redis 3 monitoring error #14

woutervb opened this issue Mar 15, 2016 · 0 comments

Comments

@woutervb
Copy link

When using the trapper mode of this tool. I received the following exception:

redis.exceptions.ResponseError: WRONGTYPE Operation against a key holding the wrong kind of value

I could narrow this down to the following piece of code:

   keys = client.keys('*')
   llensum = 0
   for key in keys:
           llensum += client.llen(key)
   a.append(Metric(args.hostname, 'redis[llenall]', llensum))

Which seems like the is / can be a problem with the call for llen on a specific key. Putting the code in an try: / except: clause fixed the problem, but return 0 a a value for llenall. So I simply removed the code.

I am not really into redis, but is this problem caused by a change in redis 2 -> 3? Or is there a specific python redis client requirement. I am running version 2.10.1-1 (debian 8 std installation)

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

1 participant