ActiveMQ 队列指标集
编辑ActiveMQ 队列指标集
编辑这是 ActiveMQ 模块的 queue
指标集。
该指标集提供描述可用 ActiveMQ 队列的指标,特别是交换的消息(已入队、已出队、已过期、正在传输)、连接的消费者、生产者及其当前长度。
为了收集数据,该模块与 Jolokia HTTP/REST 端点通信,该端点通过 HTTP/REST/JSON 公开了 JMX 指标 (JMX 密钥:org.apache.activemq:brokerName=localhost,destinationName=sample_queue,destinationType=Queue,type=Broker
)。
队列指标集带有一个预定义的仪表盘。
这是一个默认指标集。如果主机模块未配置,则默认启用此指标集。
有关指标集每个字段的描述,请参见导出字段部分。
这是一个此指标集生成的示例文档。
{ "@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 } }