英文:
Spring Boot Micrometer Counting Cancelled
问题
这更像是一个元问题,而不是一个明确的技术问题。
我正在监控一个使用 Micrometer(1.4.1)的 Spring Boot(2.2.6) 服务。该应用程序基于 Reactor 构建,运行良好,但是偶尔会出现以下数值增加一个点击:
reactor_flow_duration_seconds_count{flow="requests", status="cancelled"}
该应用程序每分钟有 2000 个请求,并且取消操作每天会发生 1-10 次。我已经查看了 Micrometer 的源代码,它会对“cancel”进行计数,但在代码中没有“cancel”的调用。在代码中有一些触发取消操作的事件,比如 FluxToMono
事件等,但这些都在 Netty 中的深层,所以我们不需要关心。
在 Micrometer 中计数“cancel”调用的目的是什么?
这个功能有用吗?我是否理解错了其目的?
英文:
This is more of a Meta question than a clear technical issue.
I am monitoring a Spring Boot (2.2.6) service with Micrometer (1.4.1). The application is Reactor based and is healthy, but every now and then following value is increased one click:
reactor_flow_duration_seconds_count{flow="requests", status="cancelled"}
The application has 2000 req/min and the cancel happens somewhere 1-10 times a day. I've checked the Micrometer source code and it counts on cancel
but there is no cancel
invocations in the code. There are FluxToMono
events and such that trigger a cancel, those are deep down in Netty so nothing we should care about.
What is the purpose of counting cancel
invocations in Micrometer?
Is it useful, do I miss the purpose?
答案1
得分: 0
简短回答是,取消计数器监控起来没有意义。这个值并没有什么关键性,取消调用是在正常执行中发生的。
英文:
Short answer is, the cancel counter doesn't make sense to monitor. There's nothing critical with that value and cancel invocation happen in normal execution.
专注分享java语言的经验与见解,让所有开发者获益!
评论