Prometheus configuration for Spring MVC 5

Viewed 507

In my company's web application we are using Spring 5, but the application is written in Spring MVC and we are not gonna change it anytime soon. I need to connect the application to Prometheus but I could not find any webpage explaining using Prometheus in Spring MVC. All examples are for Spring Boot, unfortunately.

Can you tell me how to integrate our application to Prometheus?

Best regards,

1 Answers

There's an sample project of Spring (not boot) with prometheus

Enable prometheus using AOP

Add this annotation to any Spring Configuration class to enable * the use of the PrometheusTimeMethod annotation

Related