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 Boot Actutor web metrics-禁用(或组)http\u服务器\u请求\u秒\u总和_Spring_Spring Mvc_Prometheus_Spring Boot Actuator - Fatal编程技术网

Spring Boot Actutor web metrics-禁用(或组)http\u服务器\u请求\u秒\u总和

Spring Boot Actutor web metrics-禁用(或组)http\u服务器\u请求\u秒\u总和,spring,spring-mvc,prometheus,spring-boot-actuator,Spring,Spring Mvc,Prometheus,Spring Boot Actuator,我的服务可以处理相当多的休息请求(大约每小时500k)。大多数调用都是带有不同url的GET请求。 为了从服务中获取指标,我使用了micrometer和prometheus的spring boot actuator(服务是用spring boot 2.0编写的)。 所以在路径上,我有普罗米修斯的所有指标。 现在大约10分钟后,我的服务停止提供度量,这可能是因为URL中有很多不同的值,这导致了大量http\u服务器\u请求\u秒\u和度量。 我想禁用此指标,或者对所有端点进行分组。我找到了禁用此指

我的服务可以处理相当多的休息请求(大约每小时500k)。大多数调用都是带有不同url的GET请求。 为了从服务中获取指标,我使用了micrometer和prometheus的spring boot actuator(服务是用spring boot 2.0编写的)。 所以在路径上,我有普罗米修斯的所有指标。 现在大约10分钟后,我的服务停止提供度量,这可能是因为URL中有很多不同的值,这导致了大量http\u服务器\u请求\u秒\u和度量。
我想禁用此指标,或者对所有端点进行分组。

我找到了禁用此指标的设置:自动时间请求 但是为了使它能够与反应式端点一起工作,我还需要将SpringBoot升级到2.1.0。 有副作用,我不知道有多少RQ处理我的服务。
也许现在我要改变这个问题——有没有办法将这个指标分组?

您可以禁用http指标

management.metrics.enable.http=false

非常感谢。这在文档甚至代码中都找不到。