简体   繁体   English

Spring 启动测微计计数取消

[英]Spring Boot Micrometer Counting Cancelled

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).我正在使用 Micrometer (1.4.1) 监控 Spring Boot (2.2.6) 服务。 The application is Reactor based and is healthy, but every now and then following value is increased one click:该应用程序是基于 Reactor 的并且是健康的,但不时地单击一下会增加以下值:

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.该应用程序有 2000 个请求/分钟,并且每天在某处发生 1-10 次取消。 I've checked the Micrometer source code and it counts on cancel but there is no cancel invocations in the code.我检查了 Micrometer 源代码,它依赖于cancel ,但代码中没有cancel调用。 There are FluxToMono events and such that trigger a cancel, those are deep down in Netty so nothing we should care about.FluxToMono事件等触发取消,这些在 Netty 的深处,所以我们不应该关心。

What is the purpose of counting cancel invocations in Micrometer?在 Micrometer 中计算cancel调用的目的是什么? Is it useful, do I miss the purpose?它有用吗,我错过了目的吗?

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.该值没有什么重要的,并且取消调用在正常执行中发生。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM