Skip to content

Commit 72dfc88

Browse files
add dimensions to process data_stream
Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
1 parent f8cd9f1 commit 72dfc88

File tree

4 files changed

+21
-3
lines changed

4 files changed

+21
-3
lines changed

packages/system/changelog.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# newer versions go on top
22
- version: "1.28.0"
33
changes:
4-
- description: Add dimension fields to metrics all data_streams, except core and processor to support TSDS migration
4+
- description: Add dimension fields to metrics all data_streams, except core to support TSDS migration
55
type: enhancement
66
link: https://github.com/elastic/integrations/pull/6118
77
- version: "1.27.1"

packages/system/data_stream/process/fields/agent.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,21 @@
1313
1414
Examples: AWS account id, Google Cloud ORG Id, or other unique identifier.'
1515
example: 666777888999
16+
dimension: true
1617
- name: availability_zone
1718
level: extended
1819
type: keyword
1920
ignore_above: 1024
2021
description: Availability zone in which this host is running.
2122
example: us-east-1c
23+
dimension: true
2224
- name: instance.id
2325
level: extended
2426
type: keyword
2527
ignore_above: 1024
2628
description: Instance ID of the host machine.
2729
example: i-1234567890abcdef0
30+
dimension: true
2831
- name: instance.name
2932
level: extended
3033
type: keyword
@@ -42,12 +45,14 @@
4245
ignore_above: 1024
4346
description: Name of the cloud provider. Example values are aws, azure, gcp, or digitalocean.
4447
example: aws
48+
dimension: true
4549
- name: region
4650
level: extended
4751
type: keyword
4852
ignore_above: 1024
4953
description: Region in which this host is running.
5054
example: us-east-1
55+
dimension: true
5156
- name: project.id
5257
type: keyword
5358
description: Name of the project in Google Cloud.
@@ -67,6 +72,7 @@
6772
type: keyword
6873
ignore_above: 1024
6974
description: Unique container id.
75+
dimension: true
7076
- name: image.name
7177
level: extended
7278
type: keyword
@@ -134,6 +140,7 @@
134140
level: core
135141
type: keyword
136142
ignore_above: 1024
143+
dimension: true
137144
description: 'Name of the host.
138145
139146
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.'
@@ -202,6 +209,13 @@
202209
description: Process metrics.
203210
type: group
204211
fields:
212+
- name: pid
213+
level: core
214+
type: long
215+
ignore_above: 1024
216+
description: 'Process id.'
217+
dimension: true
218+
205219
- name: state
206220
type: keyword
207221
description: >

packages/system/data_stream/process/fields/ecs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,6 @@
4848
external: ecs
4949
- name: service.type
5050
external: ecs
51+
- external: ecs
52+
name: agent.id
53+
dimension: true

packages/system/docs/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1800,6 +1800,7 @@ If running as less privileged user, it may not be able to read process data belo
18001800
| Field | Description | Type | Unit | Metric Type |
18011801
|---|---|---|---|---|
18021802
| @timestamp | Event timestamp. | date | | |
1803+
| agent.id | Unique identifier of this agent (if one exists). Example: For Beats this would be beat.id. | keyword | | |
18031804
| 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 | | |
18041805
| cloud.availability_zone | Availability zone in which this host is running. | keyword | | |
18051806
| cloud.image.id | Image ID for the cloud instance. | keyword | | |
@@ -1826,7 +1827,7 @@ If running as less privileged user, it may not be able to read process data belo
18261827
| host.hostname | Hostname of the host. It normally contains what the `hostname` command returns on the host machine. | keyword | | |
18271828
| 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 | | |
18281829
| host.ip | Host ip addresses. | ip | | |
1829-
| host.mac | Host MAC addresses. The notation format from RFC 7042 is suggested: Each octet (that is, 8-bit byte) is represented by two [uppercase] hexadecimal digits giving the value of the octet as an unsigned integer. Successive octets are separated by a hyphen. | keyword | | |
1830+
| host.mac | Host mac addresses. | keyword | | |
18301831
| 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 | | |
18311832
| host.os.build | OS build information. | keyword | | |
18321833
| host.os.codename | OS codename, if any. | keyword | | |
@@ -1835,7 +1836,7 @@ If running as less privileged user, it may not be able to read process data belo
18351836
| host.os.full.text | Multi-field of `host.os.full`. | match_only_text | | |
18361837
| host.os.kernel | Operating system kernel version as a raw string. | keyword | | |
18371838
| host.os.name | Operating system name, without the version. | keyword | | |
1838-
| host.os.name.text | Multi-field of `host.os.name`. | text | | |
1839+
| host.os.name.text | Multi-field of `host.os.name`. | match_only_text | | |
18391840
| host.os.platform | Operating system platform (such centos, ubuntu, windows). | keyword | | |
18401841
| host.os.version | Operating system version as a raw string. | keyword | | |
18411842
| 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 | | |

0 commit comments

Comments
 (0)