Search code examples
spring-bootmetricsspring-boot-actuatormicrometer

Can spring boot actuator expose remote jvm metrics?


For some old legacy customers,we want to expose some metrics for health monitoring. Was looking at the spring boot application where it exposes lot of helpful metrics from local JVM. Is it possible that if I install the sprint boot actuator application separately in the server, it exposes all these information from remote JVM? Any other suggestion//alternative path is appreciated?


Solution

  • It’s not clear from your question whether the “legacy” app is a Spring Boot app. I don’t believe actuator works for non-Spring Boot apps, and it certainly doesn’t monitor an app remotely. Micrometer is fine, but you do need some setup in order for it to work that is usually done by Spring Boot auto configure (for instance, configure a GraphiteReporter).

    If you don’t/can’t modify the source of the app you want to monitor, you can use the OpenTelemetry Java agent.