ActiveMQ 代理指标集编辑

这是 ActiveMQ 模块的 broker 指标集。

该指标集提供描述监控的 ActiveMQ 代理的指标,特别是连接的消费者、生产者、内存使用情况、活动连接和交换的消息。

为了收集数据,该模块与一个 Jolokia HTTP/REST 端点进行通信,该端点通过 HTTP/REST/JSON 暴露 JMX 指标(JMX 键:org.apache.activemq:brokerName=*,type=Broker)。

代理指标集带有预定义的仪表盘

metricbeat activemq broker overview

这是一个默认的指标集。如果主机模块未配置,则默认情况下启用此指标集。

字段

有关指标集中每个字段的描述,请参阅导出字段部分。

以下是由此指标集生成的示例文档

{
    "@timestamp": "2019-11-19T13:14:17.425Z",
    "@metadata": {
        "beat": "metricbeat",
        "type": "_doc",
        "version": "8.0.0"
    },
    "event": {
        "duration": 100756657,
        "dataset": "activemq.broker",
        "module": "activemq"
    },
    "metricset": {
        "name": "broker",
        "period": 5000
    },
    "service": {
        "address": "localhost:33051",
        "type": "activemq"
    },
    "activemq": {
        "broker": {
            "mbean": "org.apache.activemq:brokerName=localhost,type=Broker",
            "memory": {
                "store": {
                    "pct": 0
                },
                "temp": {
                    "pct": 0
                },
                "broker": {
                    "pct": 0
                }
            },
            "messages": {
                "dequeue": {
                    "count": 0
                },
                "enqueue": {
                    "count": 1
                },
                "count": 0
            },
            "producers": {
                "count": 0
            },
            "connections": {
                "count": 0
            },
            "consumers": {
                "count": 0
            },
            "name": "localhost"
        }
    },
    "ecs": {
        "version": "1.2.0"
    },
    "host": {
        "name": "macbook.local"
    },
    "agent": {
        "hostname": "macbook.local",
        "id": "8d20f9a9-b24d-419b-97e6-bcccfb64679c",
        "version": "8.0.0",
        "type": "metricbeat",
        "ephemeral_id": "aa9fb858-9b48-4028-a5e6-d46d83982572"
    }
}