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

[MongoDB] Added dimension fields for replstatus datastream to support… #6234

Merged
Merged
Show file tree
Hide file tree
Changes from all 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/mongodb/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
- version: "1.9.8"
changes:
- description: Added dimension fields for replstatus datastream to support TSDB.
type: enhancement
link: https://github.com/elastic/integrations/pull/6234
- version: "1.9.7"
changes:
- description: Added metric_type fields for status datastream.
Expand Down
4 changes: 3 additions & 1 deletion packages/mongodb/data_stream/collstats/fields/agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- name: account.id
level: extended
type: keyword
dimension: true
ignore_above: 1024
description: 'The cloud account or organization id used to identify different entities in a multi-tenant environment.

Expand All @@ -16,6 +17,7 @@
- name: availability_zone
level: extended
type: keyword
dimension: true
ignore_above: 1024
description: Availability zone in which this host is running.
example: us-east-1c
Expand Down Expand Up @@ -47,13 +49,13 @@
- name: region
level: extended
type: keyword
dimension: true
ignore_above: 1024
description: Region in which this host is running.
example: us-east-1
- 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 Down
4 changes: 3 additions & 1 deletion packages/mongodb/data_stream/dbstats/fields/agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- name: account.id
level: extended
type: keyword
dimension: true
ignore_above: 1024
description: 'The cloud account or organization id used to identify different entities in a multi-tenant environment.

Expand All @@ -16,6 +17,7 @@
- name: availability_zone
level: extended
type: keyword
dimension: true
ignore_above: 1024
description: Availability zone in which this host is running.
example: us-east-1c
Expand Down Expand Up @@ -47,13 +49,13 @@
- name: region
level: extended
type: keyword
dimension: true
ignore_above: 1024
description: Region in which this host is running.
example: us-east-1
- 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 Down
15 changes: 15 additions & 0 deletions packages/mongodb/data_stream/replstatus/fields/agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- name: account.id
level: extended
type: keyword
dimension: true
ignore_above: 1024
description: 'The cloud account or organization id used to identify different entities in a multi-tenant environment.

Expand All @@ -16,12 +17,14 @@
- name: availability_zone
level: extended
type: keyword
dimension: true
ignore_above: 1024
description: Availability zone in which this host is running.
example: us-east-1c
- name: instance.id
level: extended
type: keyword
dimension: true
ignore_above: 1024
description: Instance ID of the host machine.
example: i-1234567890abcdef0
Expand All @@ -39,12 +42,14 @@
- name: provider
level: extended
type: keyword
dimension: true
ignore_above: 1024
description: Name of the cloud provider. Example values are aws, azure, gcp, or digitalocean.
example: aws
- name: region
level: extended
type: keyword
dimension: true
ignore_above: 1024
description: Region in which this host is running.
example: us-east-1
Expand All @@ -65,6 +70,7 @@
- name: id
level: core
type: keyword
dimension: true
ignore_above: 1024
description: Unique container id.
- name: image.name
Expand Down Expand Up @@ -133,6 +139,7 @@
- name: name
level: core
type: keyword
dimension: true
ignore_above: 1024
description: 'Name of the host.

Expand Down Expand Up @@ -196,3 +203,11 @@
description: >
OS codename, if any.

- name: agent
title: Agent
type: group
fields:
- name: id
type: keyword
ignore_above: 1024
dimension: true
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@
description: Event timestamp.
- name: service.address
type: keyword
dimension: true
description: Address of the machine where the service is running.
1 change: 1 addition & 0 deletions packages/mongodb/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1170,6 +1170,7 @@ The fields reported are:
| 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/mongodb/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: mongodb
title: MongoDB
version: 1.9.7
version: 1.9.8
description: Collect logs and metrics from MongoDB instances with Elastic Agent.
type: integration
categories:
Expand Down