ActiveMQ 队列度量集
编辑ActiveMQ 队列度量集编辑
这是 ActiveMQ 模块的 queue
度量集。
该度量集提供描述可用 ActiveMQ 队列的指标,特别是交换的消息(排队、出队、过期、传输中)、连接的消费者、生产者及其当前长度。
为了收集数据,该模块与 Jolokia HTTP/REST 端点通信,该端点通过 HTTP/REST/JSON(JMX 键:org.apache.activemq:brokerName=localhost,destinationName=sample_queue,destinationType=Queue,type=Broker
)公开 JMX 指标。
队列度量集附带一个预定义的仪表板。
这是一个默认的度量集。如果主机模块未配置,则默认情况下会启用此度量集。
有关度量集中每个字段的描述,请参见导出字段部分。
以下是由此度量集生成的示例文档
{ "@timestamp": "2019-11-19T13:13:56.283Z", "@metadata": { "beat": "metricbeat", "type": "_doc", "version": "8.0.0" }, "metricset": { "name": "queue", "period": 5000 }, "ecs": { "version": "1.2.0" }, "host": { "name": "macbook.local" }, "agent": { "ephemeral_id": "e830f069-d442-498c-af73-6b02fa8b0f90", "hostname": "macbook.local", "id": "8d20f9a9-b24d-419b-97e6-bcccfb64679c", "version": "8.0.0", "type": "metricbeat" }, "service": { "type": "activemq", "address": "localhost:33049" }, "activemq": { "queue": { "producers": { "count": 0 }, "name": "sample_queue", "memory": { "broker": { "pct": 0 } }, "size": 2, "consumers": { "count": 0 }, "mbean": "org.apache.activemq:brokerName=localhost,destinationName=sample_queue,destinationType=Queue,type=Broker", "messages": { "size": { "avg": 1037 }, "expired": { "count": 0 }, "dequeue": { "count": 0 }, "inflight": { "count": 0 }, "dispatch": { "count": 0 }, "enqueue": { "time": { "avg": 0, "min": 0, "max": 0 }, "count": 2 } } } }, "event": { "dataset": "activemq.queue", "module": "activemq", "duration": 16081129 } }