Skip to content

Commit

Permalink
Add state field for connection metricset from RabbitMQ module (#13697) (
Browse files Browse the repository at this point in the history
  • Loading branch information
Amanda H. L. de Andrade Katz authored and Pablo Mercado committed Nov 4, 2019
1 parent 49a37a9 commit fd1be61
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 1 deletion.
10 changes: 10 additions & 0 deletions metricbeat/docs/fields.asciidoc
Expand Up @@ -26116,6 +26116,16 @@ alias to: rabbitmq.node.name
--
*`rabbitmq.connection.state`*::
+
--
Connection state.
type: keyword
--
*`rabbitmq.connection.channels`*::
+
--
Expand Down
1 change: 1 addition & 0 deletions metricbeat/module/rabbitmq/connection/_meta/data.json
Expand Up @@ -33,6 +33,7 @@
"port": 60940
},
"port": 5672,
"state": "running",
"type": "network"
},
"node": {
Expand Down
4 changes: 4 additions & 0 deletions metricbeat/module/rabbitmq/connection/_meta/fields.yml
Expand Up @@ -26,6 +26,10 @@
migration: true
description: >
Node name.
- name: state
type: keyword
description: >
Connection state.
- name: channels
type: long
description: >
Expand Down
Expand Up @@ -33,6 +33,7 @@
"port": 60940
},
"port": 5672,
"state": "running",
"type": "network"
},
"node": {
Expand Down Expand Up @@ -82,6 +83,7 @@
"port": 60938
},
"port": 5672,
"state": "running",
"type": "network"
},
"node": {
Expand Down
1 change: 1 addition & 0 deletions metricbeat/module/rabbitmq/connection/data.go
Expand Up @@ -37,6 +37,7 @@ var (
"vhost": c.Str("vhost", s.Required),
"user": c.Str("user", s.Required),
"node": c.Str("node", s.Required),
"state": c.Str("state"),
"channels": c.Int("channels"),
"channel_max": c.Int("channel_max"),
"frame_max": c.Int("frame_max"),
Expand Down
2 changes: 1 addition & 1 deletion metricbeat/module/rabbitmq/fields.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fd1be61

Please sign in to comment.