-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rabbitmq exchanges metricset #6607
Changes from 5 commits
0fd1b3e
c367e42
36aebae
5719f84
34b28f2
6102a3e
16a547d
73a70cb
3e95364
fa9039e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
//// | ||
This file is generated! See scripts/docs_collector.py | ||
//// | ||
|
||
[[metricbeat-metricset-rabbitmq-exchange]] | ||
=== RabbitMQ exchange metricset | ||
|
||
beta[] | ||
|
||
include::../../../module/rabbitmq/exchange/_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/exchange/_meta/data.json[] | ||
---- |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
[ | ||
{ | ||
"message_stats": { | ||
"publish": 123, | ||
"publish_details": { | ||
"rate": 0.1 | ||
}, | ||
"publish_in": 100, | ||
"publish_in_details": { | ||
"rate": 0.5 | ||
}, | ||
"publish_out": 99, | ||
"publish_out_details": { | ||
"rate": 0.9 | ||
}, | ||
"ack": 60, | ||
"ack_details": { | ||
"rate": 12.5 | ||
}, | ||
"deliver_get": 50, | ||
"deliver_get_details": { | ||
"rate": 43.21 | ||
}, | ||
"confirm": 120, | ||
"confirm_details": { | ||
"rate": 98.63 | ||
}, | ||
"return_unroutable": 40, | ||
"return_unroutable_details": { | ||
"rate": 123 | ||
}, | ||
"redeliver": 30, | ||
"redeliver_details": { | ||
"rate": 0 | ||
} | ||
}, | ||
"name": "exchange.name", | ||
"vhost": "/", | ||
"type": "fanout", | ||
"durable": true, | ||
"auto_delete": false, | ||
"internal": false, | ||
"arguments": {} | ||
} | ||
] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Any chance you could create a data.json here? The command you need is as following:
It assumes you have rabbitmq running on localhost. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will do. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This command does not generate the full json file (the message stats are missing). Am I missing something?
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I wonder if something is wrong in the metricset if they are missing? |
||
"@timestamp":"2016-05-23T08:05:34.853Z", | ||
"beat":{ | ||
"hostname":"beathost", | ||
"name":"beathost" | ||
}, | ||
"metricset":{ | ||
"host":"localhost", | ||
"module":"rabbitmq", | ||
"name":"exchange", | ||
"rtt":44269 | ||
}, | ||
"rabbitmq":{ | ||
"exchange":{ | ||
"example": "exchange" | ||
} | ||
}, | ||
"type":"metricsets" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
=== rabbitmq exchange MetricSet | ||
|
||
This is the exchange metricset of the module rabbitmq. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reminds me we should sort metricsets alphabetical (I can do that in a follow up PR).