- 问题:
-
在我公司的web应用程序中,我们使用的是spring5,但是这个应用程序是用springmvc编写的,我们不会很快改变它。我需要连接应用程序到prometheus,但我找不到任何解释在springmvc中使用Prometheus的网页。不幸的是,所有的例子都是针对springboot的
你能告诉我如何将我们的应用程序集成到prometheus吗?在
谨致问候
- 答案:
-
有一个Spring(而不是boot)的示例项目prometheus在
启用prometheus使用AOP在
将此注释添加到任何Spring配置类中,以启用*PrometheusTimeMethod注释的使用
![]() |
![]() |
![]() |