Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/spring-mvc/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring mvc SpringMVC5的Prometheus配置_Spring Mvc_Prometheus - Fatal编程技术网

Spring mvc SpringMVC5的Prometheus配置

Spring mvc SpringMVC5的Prometheus配置,spring-mvc,prometheus,Spring Mvc,Prometheus,在我公司的web应用程序中,我们使用的是Spring5,但该应用程序是用SpringMVC编写的,我们不会很快更改它。我需要将应用程序连接到Prometheus,但我找不到任何解释在SpringMVC中使用Prometheus的网页。不幸的是,所有的例子都是针对Spring Boot的 你能告诉我如何将我们的应用程序集成到普罗米修斯上吗 致以最诚挚的问候,这里有一个Spring(而不是boot)的示例项目 使普罗米修斯能够使用 将此注释添加到任何Spring配置类中,以启用*Prometheus

在我公司的web应用程序中,我们使用的是Spring5,但该应用程序是用SpringMVC编写的,我们不会很快更改它。我需要将应用程序连接到Prometheus,但我找不到任何解释在SpringMVC中使用Prometheus的网页。不幸的是,所有的例子都是针对Spring Boot的

你能告诉我如何将我们的应用程序集成到普罗米修斯上吗


致以最诚挚的问候,

这里有一个Spring(而不是boot)的示例项目

使普罗米修斯能够使用

将此注释添加到任何Spring配置类中,以启用*PrometheusTimeMethod注释的使用


有一个Spring(而不是boot)的示例项目

使普罗米修斯能够使用

将此注释添加到任何Spring配置类中,以启用*PrometheusTimeMethod注释的使用


我已经做了那个配置。但问题是,我在控制器的方法中使用了@PrometheusTimeMethod注释,但它在Prometheus中显示,可能有什么问题?@yyy比较pom.xml以查找缺少的依赖项您提到的项目不是示例项目。这是一个在Spring we应用程序中启用普罗米修斯的库。问题是普罗米修斯没有设置为侦听我的web应用程序。我现在修好了。我已经做了那个配置。但问题是,我在控制器的方法中使用了@PrometheusTimeMethod注释,但它在Prometheus中显示,可能有什么问题?@yyy比较pom.xml以查找缺少的依赖项您提到的项目不是示例项目。这是一个在Spring we应用程序中启用普罗米修斯的库。问题是普罗米修斯没有设置为侦听我的web应用程序。我现在修好了。