Rips
Rips

Reputation: 2004

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?

Upvotes: 0

Views: 1272

Answers (2)

Jonatan Ivanov
Jonatan Ivanov

Reputation: 6833

Micrometer exposes JVM metrics about the JVM that is loading it. If you want to expose metrics about an application, just add micrometer to it, you don't necessarily need spring-boot, e.g.: if your backend is prometheus: https://micrometer.io/docs/registry/prometheus
Pick the backend you want to use:https://micrometer.io/docs

Upvotes: 1

Abhijit Sarkar
Abhijit Sarkar

Reputation: 24518

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.

Upvotes: 0

Related Questions