-
Notifications
You must be signed in to change notification settings - Fork 600
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
New Relic doesn't track metrics for redis-clustering gem #2444
Comments
Hi @praveen-ks, thanks for bringing this gap in our instrumentation to our attention. To start collecting the same data you see for the Are there any features unique to the |
That should be enough @kaylareopelle, nothing specific to redis-clustering gem. |
@kaylareopelle I have tried adding the instrumentation for redis-clustering gem using:
It worked, I was able to get redis-cluster connection calls data. But it caused performance decline for my application. Because of this override in my application the redis connection calls become Let me know if I am missing anything. Thanks in advance for any leads 🙏 |
Hi @praveen-ks, I'm excited to hear that prepending helped! It's troubling to hear about the performance decline.
Could you try swapping the prepend call with the following, and let me know how it goes? |
I am using latest version of both redis and redis-clustering and this code is already taking care of registering middleware for That's why I don't feel this can help or am I missing something here? |
Ah, I see. I didn't realize you had If it was just the I'll take another look at the issue and see if I have something else to recommend. |
Thanks @kaylareopelle It will be really helpful if I can get some workaround for time being. |
Hi @praveen-ks! I've had a chance to look a little more closely at this issue. I believe part of the slowdown may have been caused by errors silently being raised while trying to capture the db name. I have a branch, If you'd like to test out the functionality, you can do so by updating the way the gem 'newrelic_rpm', github: 'newrelic/newrelic-ruby-agent', branch: 'redis-clustering' |
Hi @praveen-ks, this branch has been merged and will be included in a future release. The |
Thanks @kaylareopelle, can't test it instantly because of other priorities. Will plan it sooner |
redis-rb moved the cluster support to redis-clustering gem companion gem which internally uses redis-cluster-client gem. I am using ElastiCache cluster and upgrading
redis-rb
gem to latest version.Issue: New Relic is tracking the data for connections created using redis-client gem but not for redis-cluster-client gem. What can I do to make New Relic work with redis cluster & redis-clustering gem.
Redis::Client
support is there butRedis::Cluster::Client
is not supported.The text was updated successfully, but these errors were encountered: