-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Basic RabbitMQ queues metricset (#4788)
Basic RabbitMQ queue metricset Related to #3887
- Loading branch information
Showing
18 changed files
with
851 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
//// | ||
This file is generated! See scripts/docs_collector.py | ||
//// | ||
|
||
[[metricbeat-metricset-rabbitmq-queue]] | ||
include::../../../module/rabbitmq/queue/_meta/docs.asciidoc[] | ||
|
||
|
||
==== Fields | ||
|
||
For a description of each field in the metricset, see the | ||
<<exported-fields-rabbitmq,exported fields>> section. | ||
|
||
Here is an example document generated by this metricset: | ||
|
||
[source,json] | ||
---- | ||
include::../../../module/rabbitmq/queue/_meta/data.json[] | ||
---- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
- module: rabbitmq | ||
metricsets: ["node"] | ||
metricsets: ["node", "queue"] | ||
period: 10s | ||
hosts: ["localhost:15672"] | ||
|
||
|
145 changes: 145 additions & 0 deletions
145
metricbeat/module/rabbitmq/_meta/testdata/queue_sample_response.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,145 @@ | ||
[ | ||
{ | ||
"memory": 232720, | ||
"message_stats": { | ||
"disk_reads": 212, | ||
"disk_reads_details": { | ||
"rate": 0 | ||
}, | ||
"disk_writes": 121, | ||
"disk_writes_details": { | ||
"rate": 0 | ||
}, | ||
"deliver": 15, | ||
"deliver_details": { | ||
"rate": 0 | ||
}, | ||
"deliver_no_ack": 0, | ||
"deliver_no_ack_details": { | ||
"rate": 0 | ||
}, | ||
"get": 0, | ||
"get_details": { | ||
"rate": 0 | ||
}, | ||
"get_no_ack": 38, | ||
"get_no_ack_details": { | ||
"rate": 0 | ||
}, | ||
"publish": 121, | ||
"publish_details": { | ||
"rate": 0 | ||
}, | ||
"publish_in": 0, | ||
"publish_in_details": { | ||
"rate": 0 | ||
}, | ||
"publish_out": 0, | ||
"publish_out_details": { | ||
"rate": 0 | ||
}, | ||
"ack": 9, | ||
"ack_details": { | ||
"rate": 0 | ||
}, | ||
"deliver_get": 53, | ||
"deliver_get_details": { | ||
"rate": 0 | ||
}, | ||
"confirm": 0, | ||
"confirm_details": { | ||
"rate": 0 | ||
}, | ||
"return_unroutable": 0, | ||
"return_unroutable_details": { | ||
"rate": 0 | ||
}, | ||
"redeliver": 3, | ||
"redeliver_details": { | ||
"rate": 0 | ||
} | ||
}, | ||
"reductions": 787128, | ||
"reductions_details": { | ||
"rate": 0 | ||
}, | ||
"messages": 74, | ||
"messages_details": { | ||
"rate": 0 | ||
}, | ||
"messages_ready": 71, | ||
"messages_ready_details": { | ||
"rate": 0 | ||
}, | ||
"messages_unacknowledged": 3, | ||
"messages_unacknowledged_details": { | ||
"rate": 0 | ||
}, | ||
"idle_since": "2017-07-28 23:45:52", | ||
"consumer_utilisation": 0.7, | ||
"policy": null, | ||
"exclusive_consumer_tag": null, | ||
"consumers": 3, | ||
"recoverable_slaves": null, | ||
"state": "running", | ||
"garbage_collection": { | ||
"min_bin_vheap_size": 46422, | ||
"min_heap_size": 233, | ||
"fullsweep_after": 65535, | ||
"minor_gcs": 0 | ||
}, | ||
"messages_ram": 74, | ||
"messages_ready_ram": 71, | ||
"messages_unacknowledged_ram": 3, | ||
"messages_persistent": 73, | ||
"message_bytes": 101824, | ||
"message_bytes_ready": 97696, | ||
"message_bytes_unacknowledged": 4128, | ||
"message_bytes_ram": 101824, | ||
"message_bytes_persistent": 101824, | ||
"head_message_timestamp": 1501250275, | ||
"disk_reads": 212, | ||
"disk_writes": 121, | ||
"backing_queue_status": { | ||
"priority_lengths": { | ||
"0": 0, | ||
"1": 71, | ||
"2": 0, | ||
"3": 0, | ||
"4": 0, | ||
"5": 0, | ||
"6": 0, | ||
"7": 0, | ||
"8": 0, | ||
"9": 0 | ||
}, | ||
"mode": "default", | ||
"q1": 0, | ||
"q2": 0, | ||
"delta": [ | ||
"delta", | ||
"todo", | ||
"todo", | ||
"todo" | ||
], | ||
"q3": 0, | ||
"q4": 71, | ||
"len": 71, | ||
"target_ram_count": "infinity", | ||
"next_seq_id": 121, | ||
"avg_ingress_rate": 0, | ||
"avg_egress_rate": 0.00019793395296866087, | ||
"avg_ack_ingress_rate": 0.00019793395296866087, | ||
"avg_ack_egress_rate": 0.00019793395296866087 | ||
}, | ||
"node": "rabbit@localhost", | ||
"arguments": { | ||
"x-max-priority": 9 | ||
}, | ||
"exclusive": false, | ||
"auto_delete": false, | ||
"durable": true, | ||
"vhost": "/", | ||
"name": "queuenamehere" | ||
} | ||
] |
Oops, something went wrong.