English 中文(简体)
是否有任何组合限制行动方收集所有指标
原标题:Is there any configuration to limit actuator to collect all apps metrics

Background: I have a spring boot project, it s used to provide many APIs to another sectors. Totally i have 300 APIs, and i m using actuator/prometheus endpoint to collect the applications metrics, like http_server_requests_seconds_count http_server_requests_seconds_sum and so on. spring boot version: 2.6.6 my issue: it cant get all apps metric in prometheus, for example: APIs:

/app/test1
/app/test2
/app/test3
/app/test4
......
/app/test300

指标如下:

http_server_requests_seconds_count{application="my_test",exception="None",method="GET",outcome="SUCCESS",status="200",uri="/app/test1",} 2.0
http_server_requests_seconds_count{application="my_test",exception="None",method="GET",outcome="SUCCESS",status="200",uri="/app/test2",} 2.0
http_server_requests_seconds_count{application="my_test",exception="None",method="GET",outcome="SUCCESS",status="200",uri="/app/test3",} 2.0
http_server_requests_seconds_count{application="my_test",exception="None",method="GET",outcome="SUCCESS",status="200",uri="/app/test4",} 2.0
......
http_server_requests_seconds_count{application="my_test",exception="None",method="GET",outcome="SUCCESS",status="200",uri="/app/test179",} 2.0
http_server_requests_seconds_count{application="my_test",exception="None",method="GET",outcome="SUCCESS",status="200",uri="/app/test180",} 2.0

它失去了一些衡量标准,例如: /app/test193 /app/test246 /app/test289......,它喜欢行为方仅仅能够收集180份评估标准,这样就想到是否存在着任何限制。 增 编

i 在试卷上复制这一问题,但必须从根本上解决问题。

问题回答

您可尝试对以下财产进行配置: management.mets.web.server.max-uri-tags, 违约率为100

允许使用独一无二的URI tag值。 在达到最高标值后,过滤器否定了附加标值的度量。

如达到最高标准,请设<代码>。 • 在您的标识中填入“号”的海底标识的最大值。





相关问题
WAF FILE could not EXPORT due to no WEB PROJECT option found

I was trying to create a war file on spring tool suite 4 (windows version). But as I was about to export the it to the local file system, I couldn t find the web project (wiseai-console) option of the ...

Combine multiple cb.literal() into 1 Expression

I am working on a Spring Boot project that uses PostgreSQL. I want to create a advanced search feature where user can search through the jsonb column that I have in many of my tables. Somewhere in my ...

Error using criteriaBuilder.max() for LocalDate

I am trying to get max date using criteria builder in a subquery. But I am getting this error Required type: Expression Provided: Expression Subquery<LocalDate> subRoot = criteriaQuery....

热门标签