Skip to content
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] Added dimension fields for rabbitmq queue datastream #5660

Merged
merged 7 commits into from
Apr 3, 2023
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/rabbitmq/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
- version: "1.8.6"
changes:
- description: Added dimension fields for queue datastream to support TSDB.
type: enhancement
link: https://github.com/elastic/integrations/pull/5660
- version: "1.7.0"
changes:
- description: Migrate visualizations to lens.
Expand Down
14 changes: 14 additions & 0 deletions packages/rabbitmq/data_stream/queue/fields/agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
ignore_above: 1024
description: Instance ID of the host machine.
example: i-1234567890abcdef0
dimension: true
- name: instance.name
level: extended
type: keyword
Expand All @@ -42,6 +43,7 @@
ignore_above: 1024
description: Name of the cloud provider. Example values are aws, azure, gcp, or digitalocean.
example: aws
dimension: true
- name: region
level: extended
type: keyword
Expand All @@ -51,6 +53,7 @@
- name: project.id
type: keyword
description: Name of the project in Google Cloud.
dimension: true
- name: image.id
type: keyword
description: Image ID for the cloud instance.
Expand All @@ -67,6 +70,7 @@
type: keyword
ignore_above: 1024
description: Unique container id.
dimension: true
- name: image.name
level: extended
type: keyword
Expand Down Expand Up @@ -134,6 +138,7 @@
level: core
type: keyword
ignore_above: 1024
dimension: true
description: '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.'
Expand Down Expand Up @@ -195,4 +200,13 @@
example: "stretch"
description: >
OS codename, if any.

- name: agent
title: Agent
type: group
fields:
- name: id
type: keyword
ignore_above: 1024
dimension: true

1 change: 1 addition & 0 deletions packages/rabbitmq/data_stream/queue/fields/ecs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
name: ecs.version
- external: ecs
name: service.address
dimension: true
- external: ecs
name: service.type
2 changes: 2 additions & 0 deletions packages/rabbitmq/data_stream/queue/fields/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
fields:
- name: name
type: keyword
# Reason for adding as dimension field : There can be same queue names for multiple vhosts.
dimension: true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add the reason

description: |
The name of the queue with non-ASCII characters escaped as in C.
- name: durable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@
fields:
- name: vhost
type: keyword
# Reason for adding as dimension field : There can be multiple vhosts in a cluster.
dimension: true
description: |
Virtual host name with non-ASCII characters escaped as in C.
1 change: 1 addition & 0 deletions packages/rabbitmq/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,7 @@ An example event for `queue` looks as following:
| Field | Description | Type |
|---|---|---|
| @timestamp | Event timestamp. | date |
| agent.id | | keyword |
| 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 |
| cloud.availability_zone | Availability zone in which this host is running. | keyword |
| cloud.image.id | Image ID for the cloud instance. | keyword |
Expand Down
2 changes: 1 addition & 1 deletion packages/rabbitmq/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
format_version: 1.0.0
name: rabbitmq
title: RabbitMQ Logs
version: 1.7.0
version: 1.8.6
license: basic
description: Collect and parse logs from RabbitMQ servers with Elastic Agent.
type: integration
Expand Down