spring-cloud-netflix icon indicating copy to clipboard operation
spring-cloud-netflix copied to clipboard

spring boot 3.3.2 missing servo metrics with jmx_prometheus_javaagent

Open huntkalio opened this issue 1 year ago • 3 comments

I use spring-cloud-netflix for eureka server,and use jmx_prometheus_javaagent to get metric from JMX。 A):spring boot 2.7.18 + netflix-eureka-server-3.1.7 B):spring boot 3.3.2 + netflix-eureka-server-4.1.3

In A I can get many metric like: com_netflix_servo_localRegistrySize_value (from eurekaserver servo);but in B there is nothing 。How can I get servo metrics after I upgrade spring boot version?

huntkalio avatar Aug 27 '24 13:08 huntkalio

I've closed the issue on the Boot side. If it happens to be a Spring Boot bug, I'm happy to re-open it again.

mhalbritter avatar Aug 27 '24 14:08 mhalbritter

and I found in B there in no MBean like com.netflix.servo

huntkalio avatar Aug 28 '24 02:08 huntkalio

I found spring-cloud-netflix 3.x use eureka 2.x which replace servo with spectator.Then I change to use spectator-reg-micrometer with micrometer-registry-prometheus in eurekaserver.Is it okay to do this?

huntkalio avatar Aug 28 '24 13:08 huntkalio

These seems to refer to internal changes in https://github.com/Netflix projects and not something that Spring Cloud Netflix has reconfigured. Please inquire in that org about it.

OlgaMaciaszek avatar Sep 06 '24 14:09 OlgaMaciaszek