Skip to content

Commit 7c3b945

Browse files
authored
Update metric_type for the fields of connection datastream (#5718)
* Update metric_type for the fields of connection datastream
1 parent 81d6331 commit 7c3b945

File tree

4 files changed

+76
-63
lines changed

4 files changed

+76
-63
lines changed

packages/rabbitmq/changelog.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
- version: "1.8.4"
2+
changes:
3+
- description: Add metric_type for the fields of connection datastream
4+
type: enhancement
5+
link: https://github.com/elastic/integrations/pull/5718
16
- version: "1.8.3"
27
changes:
38
- description: Added dimension fields for queue datastream to support TSDB.

packages/rabbitmq/data_stream/connection/fields/fields.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,18 @@
1313
Connection state.
1414
- name: channels
1515
type: long
16+
metric_type: gauge
1617
description: |
1718
The number of channels on the connection.
1819
- name: channel_max
1920
type: long
21+
metric_type: counter
2022
description: |
2123
The maximum number of channels allowed on the connection.
2224
- name: frame_max
2325
type: long
2426
format: bytes
27+
metric_type: gauge
2528
description: |
2629
Maximum permissible size of a frame (in bytes) to negotiate with clients.
2730
- name: type
@@ -46,22 +49,27 @@
4649
Peer port.
4750
- name: packet_count.sent
4851
type: long
52+
metric_type: counter
4953
description: |
5054
Number of packets sent on the connection.
5155
- name: packet_count.received
5256
type: long
57+
metric_type: counter
5358
description: |
5459
Number of packets received on the connection.
5560
- name: packet_count.pending
5661
type: long
62+
metric_type: gauge
5763
description: |
5864
Number of packets pending on the connection.
5965
- name: octet_count.sent
6066
type: long
67+
metric_type: gauge
6168
description: |
6269
Number of octets sent on the connection.
6370
- name: octet_count.received
6471
type: long
72+
metric_type: gauge
6573
description: |
6674
Number of octets received on the connection.
6775
- name: client_provided.name

packages/rabbitmq/docs/README.md

Lines changed: 62 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -128,68 +128,68 @@ An example event for `connection` looks as following:
128128

129129
**Exported fields**
130130

131-
| Field | Description | Type |
132-
|---|---|---|
133-
| @timestamp | Event timestamp. | date |
134-
| agent.id | | keyword |
135-
| cloud.account.id | The cloud account or organization id used to identify different entities in a multi-tenant environment. Examples: AWS account id, Google Cloud ORG Id, or other unique identifier. | keyword |
136-
| cloud.availability_zone | Availability zone in which this host is running. | keyword |
137-
| cloud.image.id | Image ID for the cloud instance. | keyword |
138-
| cloud.instance.id | Instance ID of the host machine. | keyword |
139-
| cloud.instance.name | Instance name of the host machine. | keyword |
140-
| cloud.machine.type | Machine type of the host machine. | keyword |
141-
| cloud.project.id | Name of the project in Google Cloud. | keyword |
142-
| cloud.provider | Name of the cloud provider. Example values are aws, azure, gcp, or digitalocean. | keyword |
143-
| cloud.region | Region in which this host is running. | keyword |
144-
| container.id | Unique container id. | keyword |
145-
| container.image.name | Name of the image the container was built on. | keyword |
146-
| container.labels | Image labels. | object |
147-
| container.name | Container name. | keyword |
148-
| data_stream.dataset | Data stream dataset. | constant_keyword |
149-
| data_stream.namespace | Data stream namespace. | constant_keyword |
150-
| data_stream.type | Data stream type. | constant_keyword |
151-
| ecs.version | ECS version this event conforms to. `ecs.version` is a required field and must exist in all events. When querying across multiple indices -- which may conform to slightly different ECS versions -- this field lets integrations adjust to the schema version of the events. | keyword |
152-
| event.dataset | Event dataset | constant_keyword |
153-
| event.module | Event module | constant_keyword |
154-
| host.architecture | Operating system architecture. | keyword |
155-
| host.containerized | If the host is a container. | boolean |
156-
| host.domain | Name of the domain of which the host is a member. For example, on Windows this could be the host's Active Directory domain or NetBIOS domain name. For Linux this could be the domain of the host's LDAP provider. | keyword |
157-
| host.hostname | Hostname of the host. It normally contains what the `hostname` command returns on the host machine. | keyword |
158-
| host.id | Unique host id. As hostname is not always unique, use values that are meaningful in your environment. Example: The current usage of `beat.name`. | keyword |
159-
| host.ip | Host ip addresses. | ip |
160-
| host.mac | Host mac addresses. | keyword |
161-
| host.name | Name of the host. It can contain what `hostname` returns on Unix systems, the fully qualified domain name, or a name specified by the user. The sender decides which value to use. | keyword |
162-
| host.os.build | OS build information. | keyword |
163-
| host.os.codename | OS codename, if any. | keyword |
164-
| host.os.family | OS family (such as redhat, debian, freebsd, windows). | keyword |
165-
| host.os.kernel | Operating system kernel version as a raw string. | keyword |
166-
| host.os.name | Operating system name, without the version. | keyword |
167-
| host.os.name.text | Multi-field of `host.os.name`. | text |
168-
| host.os.platform | Operating system platform (such centos, ubuntu, windows). | keyword |
169-
| host.os.version | Operating system version as a raw string. | keyword |
170-
| host.type | Type of host. For Cloud providers this can be the machine type like `t2.medium`. If vm, this could be the container, for example, or other information meaningful in your environment. | keyword |
171-
| rabbitmq.connection.channel_max | The maximum number of channels allowed on the connection. | long |
172-
| rabbitmq.connection.channels | The number of channels on the connection. | long |
173-
| rabbitmq.connection.client_provided.name | User specified connection name. | keyword |
174-
| rabbitmq.connection.frame_max | Maximum permissible size of a frame (in bytes) to negotiate with clients. | long |
175-
| rabbitmq.connection.host | Server hostname obtained via reverse DNS, or its IP address if reverse DNS failed or was disabled. | keyword |
176-
| rabbitmq.connection.name | The name of the connection with non-ASCII characters escaped as in C. | keyword |
177-
| rabbitmq.connection.octet_count.received | Number of octets received on the connection. | long |
178-
| rabbitmq.connection.octet_count.sent | Number of octets sent on the connection. | long |
179-
| rabbitmq.connection.packet_count.pending | Number of packets pending on the connection. | long |
180-
| rabbitmq.connection.packet_count.received | Number of packets received on the connection. | long |
181-
| rabbitmq.connection.packet_count.sent | Number of packets sent on the connection. | long |
182-
| rabbitmq.connection.peer.host | Peer hostname obtained via reverse DNS, or its IP address if reverse DNS failed or was not enabled. | keyword |
183-
| rabbitmq.connection.peer.port | Peer port. | long |
184-
| rabbitmq.connection.port | Server port. | long |
185-
| rabbitmq.connection.state | Connection state. | keyword |
186-
| rabbitmq.connection.type | Type of the connection. | keyword |
187-
| rabbitmq.vhost | Virtual host name with non-ASCII characters escaped as in C. | keyword |
188-
| service.address | Address where data about this service was collected from. This should be a URI, network address (ipv4:port or [ipv6]:port) or a resource path (sockets). | keyword |
189-
| service.type | The type of the service data is collected from. The type can be used to group and correlate logs and metrics from one service type. Example: If logs or metrics are collected from Elasticsearch, `service.type` would be `elasticsearch`. | keyword |
190-
| user | The user fields describe information about the user that is relevant to the event. Fields can have one entry or multiple entries. If a user has more than one id, provide an array that includes all of them. | group |
191-
| user.name | Short name or login of the user. | keyword |
192-
| user.name.text | Multi-field of `user.name`. | match_only_text |
131+
| Field | Description | Type | Metric Type |
132+
|---|---|---|---|
133+
| @timestamp | Event timestamp. | date | |
134+
| agent.id | | keyword | |
135+
| cloud.account.id | The cloud account or organization id used to identify different entities in a multi-tenant environment. Examples: AWS account id, Google Cloud ORG Id, or other unique identifier. | keyword | |
136+
| cloud.availability_zone | Availability zone in which this host is running. | keyword | |
137+
| cloud.image.id | Image ID for the cloud instance. | keyword | |
138+
| cloud.instance.id | Instance ID of the host machine. | keyword | |
139+
| cloud.instance.name | Instance name of the host machine. | keyword | |
140+
| cloud.machine.type | Machine type of the host machine. | keyword | |
141+
| cloud.project.id | Name of the project in Google Cloud. | keyword | |
142+
| cloud.provider | Name of the cloud provider. Example values are aws, azure, gcp, or digitalocean. | keyword | |
143+
| cloud.region | Region in which this host is running. | keyword | |
144+
| container.id | Unique container id. | keyword | |
145+
| container.image.name | Name of the image the container was built on. | keyword | |
146+
| container.labels | Image labels. | object | |
147+
| container.name | Container name. | keyword | |
148+
| data_stream.dataset | Data stream dataset. | constant_keyword | |
149+
| data_stream.namespace | Data stream namespace. | constant_keyword | |
150+
| data_stream.type | Data stream type. | constant_keyword | |
151+
| ecs.version | ECS version this event conforms to. `ecs.version` is a required field and must exist in all events. When querying across multiple indices -- which may conform to slightly different ECS versions -- this field lets integrations adjust to the schema version of the events. | keyword | |
152+
| event.dataset | Event dataset | constant_keyword | |
153+
| event.module | Event module | constant_keyword | |
154+
| host.architecture | Operating system architecture. | keyword | |
155+
| host.containerized | If the host is a container. | boolean | |
156+
| host.domain | Name of the domain of which the host is a member. For example, on Windows this could be the host's Active Directory domain or NetBIOS domain name. For Linux this could be the domain of the host's LDAP provider. | keyword | |
157+
| host.hostname | Hostname of the host. It normally contains what the `hostname` command returns on the host machine. | keyword | |
158+
| host.id | Unique host id. As hostname is not always unique, use values that are meaningful in your environment. Example: The current usage of `beat.name`. | keyword | |
159+
| host.ip | Host ip addresses. | ip | |
160+
| host.mac | Host mac addresses. | keyword | |
161+
| host.name | Name of the host. It can contain what `hostname` returns on Unix systems, the fully qualified domain name, or a name specified by the user. The sender decides which value to use. | keyword | |
162+
| host.os.build | OS build information. | keyword | |
163+
| host.os.codename | OS codename, if any. | keyword | |
164+
| host.os.family | OS family (such as redhat, debian, freebsd, windows). | keyword | |
165+
| host.os.kernel | Operating system kernel version as a raw string. | keyword | |
166+
| host.os.name | Operating system name, without the version. | keyword | |
167+
| host.os.name.text | Multi-field of `host.os.name`. | text | |
168+
| host.os.platform | Operating system platform (such centos, ubuntu, windows). | keyword | |
169+
| host.os.version | Operating system version as a raw string. | keyword | |
170+
| host.type | Type of host. For Cloud providers this can be the machine type like `t2.medium`. If vm, this could be the container, for example, or other information meaningful in your environment. | keyword | |
171+
| rabbitmq.connection.channel_max | The maximum number of channels allowed on the connection. | long | counter |
172+
| rabbitmq.connection.channels | The number of channels on the connection. | long | gauge |
173+
| rabbitmq.connection.client_provided.name | User specified connection name. | keyword | |
174+
| rabbitmq.connection.frame_max | Maximum permissible size of a frame (in bytes) to negotiate with clients. | long | gauge |
175+
| rabbitmq.connection.host | Server hostname obtained via reverse DNS, or its IP address if reverse DNS failed or was disabled. | keyword | |
176+
| rabbitmq.connection.name | The name of the connection with non-ASCII characters escaped as in C. | keyword | |
177+
| rabbitmq.connection.octet_count.received | Number of octets received on the connection. | long | gauge |
178+
| rabbitmq.connection.octet_count.sent | Number of octets sent on the connection. | long | gauge |
179+
| rabbitmq.connection.packet_count.pending | Number of packets pending on the connection. | long | gauge |
180+
| rabbitmq.connection.packet_count.received | Number of packets received on the connection. | long | counter |
181+
| rabbitmq.connection.packet_count.sent | Number of packets sent on the connection. | long | counter |
182+
| rabbitmq.connection.peer.host | Peer hostname obtained via reverse DNS, or its IP address if reverse DNS failed or was not enabled. | keyword | |
183+
| rabbitmq.connection.peer.port | Peer port. | long | |
184+
| rabbitmq.connection.port | Server port. | long | |
185+
| rabbitmq.connection.state | Connection state. | keyword | |
186+
| rabbitmq.connection.type | Type of the connection. | keyword | |
187+
| rabbitmq.vhost | Virtual host name with non-ASCII characters escaped as in C. | keyword | |
188+
| service.address | Address where data about this service was collected from. This should be a URI, network address (ipv4:port or [ipv6]:port) or a resource path (sockets). | keyword | |
189+
| service.type | The type of the service data is collected from. The type can be used to group and correlate logs and metrics from one service type. Example: If logs or metrics are collected from Elasticsearch, `service.type` would be `elasticsearch`. | keyword | |
190+
| user | The user fields describe information about the user that is relevant to the event. Fields can have one entry or multiple entries. If a user has more than one id, provide an array that includes all of them. | group | |
191+
| user.name | Short name or login of the user. | keyword | |
192+
| user.name.text | Multi-field of `user.name`. | match_only_text | |
193193

194194

195195
### Exchange Metrics

packages/rabbitmq/manifest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
format_version: 1.0.0
22
name: rabbitmq
33
title: RabbitMQ Logs
4-
version: 1.8.3
4+
version: 1.8.4
55
license: basic
66
description: Collect and parse logs from RabbitMQ servers with Elastic Agent.
77
type: integration

0 commit comments

Comments
 (0)