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

[Vsphere] Add dimensions field mapping for virtualmachine datastrea… #6333

Merged
merged 6 commits into from
Jun 1, 2023
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/vsphere/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "1.7.2"
changes:
- description: Add dimensions field mapping for virtualmachine datastream to support TSDB.
type: enhancement
link: https://github.com/elastic/integrations/pull/6333
- version: "1.7.1"
changes:
- description: Add dimensions field mapping for host datastream to support TSDB.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,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 @@ -112,3 +113,11 @@
description: >
OS codename, if any.

- name: agent
title: Agent
type: group
fields:
- name: id
type: keyword
ignore_above: 1024
dimension: true
19 changes: 19 additions & 0 deletions packages/vsphere/data_stream/virtualmachine/fields/ecs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,28 @@
external: ecs
- name: service.address
external: ecs
dimension: true
- name: service.type
external: ecs
- name: error.message
external: ecs
- name: event.duration
external: ecs
- external: ecs
name: cloud.instance.id
dimension: true
- external: ecs
name: cloud.provider
dimension: true
- external: ecs
name: container.id
dimension: true
- external: ecs
name: cloud.account.id
dimension: true
- external: ecs
name: cloud.region
dimension: true
- external: ecs
name: cloud.availability_zone
dimension: true
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
description: Name of the host hosting the virtualmachine
- name: name
type: keyword
# Reason to add as a dimension field: Each VM has Unique name assigned
dimension: true
description: Virtual Machine name
- name: os
type: keyword
Expand Down
7 changes: 7 additions & 0 deletions packages/vsphere/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,13 @@ An example event for `virtualmachine` looks as following:
| Field | Description | Type | Unit | Metric 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, resource, or service is located. | keyword | | |
| cloud.instance.id | Instance ID of the host machine. | keyword | | |
| cloud.provider | Name of the cloud provider. Example values are aws, azure, gcp, or digitalocean. | keyword | | |
| cloud.region | Region in which this host, resource, or service is located. | keyword | | |
| container.id | Unique container id. | keyword | | |
| data_stream.dataset | Data stream dataset. | constant_keyword | | |
| data_stream.namespace | Data stream namespace. | constant_keyword | | |
| data_stream.type | Data stream type. | constant_keyword | | |
Expand Down
2 changes: 1 addition & 1 deletion packages/vsphere/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
format_version: 1.0.0
name: vsphere
title: VMware vSphere
version: 1.7.1
version: 1.7.2
license: basic
description: This Elastic integration collects metrics and logs from vSphere/vCenter servers
type: integration
Expand Down