Spring boot Spring集成-无法查看MessageHandler、MessageChannel和MessageSource的指标

Spring boot Spring集成-无法查看MessageHandler、MessageChannel和MessageSource的指标,spring-boot,spring-integration,Spring Boot,Spring Integration,我有一个普罗米修斯度量注册中心和captor beans注册中心,如下所示: “普罗米修斯计量注册”:{ “别名”:[], “范围”:“单例”, “类型”:“io.千分尺.普罗米修斯.普罗米修斯流量计注册”, “资源”:“类路径资源[org/springframework/boot/actuate/autoconfigure/metrics/export/prometheus/prometheusmetricsfortautoconfiguration.class]”, “依赖项”:[ “pro

我有一个普罗米修斯度量注册中心和captor beans注册中心,如下所示:

“普罗米修斯计量注册”:{
“别名”:[],
“范围”:“单例”,
“类型”:“io.千分尺.普罗米修斯.普罗米修斯流量计注册”,
“资源”:“类路径资源[org/springframework/boot/actuate/autoconfigure/metrics/export/prometheus/prometheusmetricsfortautoconfiguration.class]”,
“依赖项”:[
“prometheusConfig”,
“收藏家注册”,
“千分表”
]
},
“集成测微计捕获器”:{
“别名”:[],
“范围”:“单例”,
“类型”:“org.springframework.integration.support.management.Millimeter.MillimeterMetricsCaptor”,
“资源”:空,
“依赖项”:[]
},
但是,当我检查
执行器/prometheus
端点时,我没有看到提到的
MessageHandler
MessageChannel
MessageSource
的任何指标。唯一可用的
spring集成
指标是:

spring\u集成\u源代码1.0

spring\u集成处理程序17.0

spring\u集成\u频道15.0


我还通过流运行了数据,但仍然看不到指标。我遗漏了什么?

谢谢您提供这么好的样品

所以,你的问题是:

<!-- Enable Spring Integration Metrics -->
<int:management/>

首先,您不能这样做,因为Spring Boot会自动为我们配置。(我们可能需要改进Spring引导文档来提及该功能)

其次,您仍然可以这样做,但您需要使用此选项:

        <xsd:attribute name="default-counts-enabled" use="optional">
            <xsd:annotation>
                <xsd:documentation>
                    The default value for components that don't match 'counts-enabled-patterns'.
                    Defaults to false, or true when an Integration MBean Exporter is provided.
                </xsd:documentation>
            </xsd:annotation>
        </xsd:attribute>

与“计数启用模式”不匹配的组件的默认值。
提供集成MBean导出器时,默认为false或true。
并将其设置为
true


在当前的Spring集成
5.4
版本中,它已被弃用。我们肯定会在下一个
6.0

中完全删除它,有没有机会玩一个简单的Spring Boot项目?普罗米修斯是什么?我需要安装一些特殊的东西吗?普罗米修斯->弹簧靴->。我是否应该在spring集成示例中的一个示例上尝试相同的方法并将结果发送给您?谢谢。那么,请问项目在哪里?不,最好有一个单独的简单项目,只关注问题。它可能会误导样品…我会创建一个,并在某个时候分享,我如何分享它?非常感谢你,高度感谢你的支持!