Springboot + Spring 缓存抽象 (Lettuce) + APM (AppDynamics)

Springboot + Spring Cache Abstraction (Lettuce) + APM (AppDynamics)

我有一个使用 SpringBoot 和 Spring 缓存抽象构建的应用程序,通过 Lettuce 使用 Redis。 我需要通过 APM AppDynamics 工具进行监控,但默认情况下它只从 Jedis 获取数据。 我可以在 AppDynamics 中创建一个出口点,但我需要确切地知道哪个 class 和方法负责打开连接并执行到 REDIS 的命令。 谁能帮我解决这个问题?

我必须创建自定义出口点才能收集 metrics/data。

转到您的控制器: 远程服务 > 配置 > 您的或层级 > 自定义退出点 > 添加

并创建 2 个自定义退出点,如下所示:

Name: REDIS GET (Lettuce)
Type: Cache
Is High Volume: true
Class [with a Class Name that] equals: io.lettuce.core.AbstractRedisAsyncCommands
Method Name: get
Name: REDIS SET (Lettuce)
Type: Cache
Is High Volume: true
Class [with a Class Name that] equals: io.lettuce.core.AbstractRedisAsyncCommands
Method Name: set

提出一些请求并稍等片刻....瞧!