【问题标题】:Springboot + Spring Cache Abstraction (Lettuce) + APM (AppDynamics)Springboot + Spring Cache Abstraction (Lettuce) + APM (AppDynamics)
【发布时间】:2020-09-09 14:35:40
【问题描述】:

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

【问题讨论】:

    标签: spring-boot redis lettuce appdynamics apm


    【解决方案1】:

    我必须创建自定义退出点来收集指标/数据。

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

    并创建 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
    

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

    【讨论】:

      猜你喜欢
      • 2018-10-26
      • 2016-09-08
      • 1970-01-01
      • 2012-12-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多