spring-cloud / spring-cloud-netflix

Integration with Netflix OSS components
http://cloud.spring.io/spring-cloud-netflix/
Apache License 2.0
4.86k stars 2.44k forks source link

spring boot 3.3.2 missing servo metrics with jmx_prometheus_javaagent #4303

Closed huntkalio closed 1 week ago

huntkalio commented 2 weeks ago

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?

mhalbritter commented 2 weeks ago

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.

huntkalio commented 2 weeks ago

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

huntkalio commented 2 weeks ago

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?

OlgaMaciaszek commented 1 week ago

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.