mercyblitz / java-training-camp

Java Training Camp
Apache License 2.0
168 stars 116 forks source link

作业六:Micrometer 整合 Redis Spring #1

Open mercyblitz opened 1 year ago

mercyblitz commented 1 year ago

要求

Redis Spring API 监控指标注册到 MeterRegistry

监控目标

ValueOpertions 中的 set 方法

监控指标

必须

● set 方法执行时间(Timer):response time ● set 方法调用次数(Counter):count

可选

● set 方法成功率(Guage):success rate

参考实现

https://github.com/microsphere-projects/microsphere-spring-projects/tree/main/microsphere-spring/microsphere-spring-redis

提示

使用动态代理的方式拦截 Spring Redis RedisConnection 接口,因为该接口是所有的 Redis 命令的底层实现。

Kurok1 commented 1 year ago

https://github.com/Kurok1/java-training-camp/commit/bf71159c2e808e9ebd7b0121bd0d7a0ad223fc19

liqi19950722 commented 1 year ago

https://github.com/liqi19950722/Work/commit/e63bf8ad5cde500df69a09763f05b3b890d2d294

karidyang commented 1 year ago

https://github.com/karidyang/java-training-camp/commit/0220782906349c06bd467008878d18bb93d0cd93

Tanxyz commented 1 year ago

https://github.com/Tanxyz/java-training-camp-homework