Prometheus JMX 导出器和 ActiveMQ

问题描述 投票:0回答:0

我正在使用 jmx_exporter 运行 AMQ 并使用提供的配置 yaml 文件。

lowercaseOutputName: true
lowercaseOutputLabelNames: true
blacklistObjectNames:
  - "org.apache.activemq:clientId=*,*"
whitelistObjectNames:
  - "org.apache.activemq:destinationType=Topic,*"

rules:

  - pattern: org.apache.activemq<type=Broker, brokerName=(\S*), destinationType=Topic, destinationName=(\S*)><>(\w+)
    name: activemq_topic_$3
    attrNameSnakeCase: true
    labels:
      destination: $2

我得到的输出是这样的:

activemq_topic_enqueue_count{destination="topic_1_name",} 0.0

我的问题:

现在,所有属性都暴露给端点,而我只对两个感兴趣,即 enqueue_count 和 dequeue_count。我如何实现这一目标?

prometheus activemq jmx-exporter
© www.soinside.com 2019 - 2024. All rights reserved.