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

Add common host inventory fields into aws and system package #301

Merged
merged 1 commit into from
Oct 7, 2020
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
31 changes: 31 additions & 0 deletions packages/aws/data_stream/ec2_metrics/fields/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,3 +159,34 @@
type: integer
description: |
The number of threads per CPU core.
- name: host
type: group
fields:
- name: cpu.pct
type: scaled_float
description: |
Percent CPU used. This value is normalized by the number of CPU cores and it ranges from 0 to 1.
- name: disk.read.bytes
type: scaled_float
description: |
The total number of bytes read successfully in a given period of time.
- name: disk.write.bytes
type: scaled_float
description: |
The total number of bytes write successfully in a given period of time.
- name: network.in.bytes
type: scaled_float
description: |
The number of bytes received on all network interfaces by the host in a given period of time.
- name: network.out.bytes
type: scaled_float
description: |
The number of bytes sent out on all network interfaces by the host in a given period of time.
- name: network.in.packets
type: scaled_float
description: |
The number of packets received on all network interfaces by the host in a given period of time.
- name: network.out.packets
type: scaled_float
description: |
The number of packets sent out on all network interfaces by the host in a given period of time.
7 changes: 7 additions & 0 deletions packages/aws/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1081,6 +1081,13 @@ An example event for `ec2` looks as following:
| data_stream.dataset | Data stream dataset. | constant_keyword |
| data_stream.namespace | Data stream namespace. | constant_keyword |
| data_stream.type | Data stream type. | constant_keyword |
| host.cpu.pct | Percent CPU used. This value is normalized by the number of CPU cores and it ranges from 0 to 1. | scaled_float |
| host.disk.read.bytes | The total number of bytes read successfully in a given period of time. | scaled_float |
| host.disk.write.bytes | The total number of bytes write successfully in a given period of time. | scaled_float |
| host.network.in.bytes | The number of bytes received on all network interfaces by the host in a given period of time. | scaled_float |
| host.network.in.packets | The number of packets received on all network interfaces by the host in a given period of time. | scaled_float |
| host.network.out.bytes | The number of bytes sent out on all network interfaces by the host in a given period of time. | scaled_float |
| host.network.out.packets | The number of packets sent out on all network interfaces by the host in a given period of time. | scaled_float |


### elb
Expand Down
7 changes: 7 additions & 0 deletions packages/system/data_stream/cpu/fields/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,10 @@
type: long
description: |
The amount of CPU time spent in involuntary wait by the virtual CPU while the hypervisor was servicing another processor. Available only on Unix.
- name: host
type: group
fields:
- name: cpu.pct
type: scaled_float
description: |
Percent CPU used. This value is normalized by the number of CPU cores and it ranges from 0 to 1.
11 changes: 11 additions & 0 deletions packages/system/data_stream/diskio/fields/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,14 @@
type: float
description: |
Percentage of CPU time during which I/O requests were issued to the device (bandwidth utilization for the device). Device saturation occurs when this value is close to 100%.
- name: host
type: group
fields:
- name: disk.read.bytes
type: scaled_float
description: |
The total number of bytes read successfully in a given period of time.
- name: disk.write.bytes
type: scaled_float
description: |
The total number of bytes write successfully in a given period of time.
19 changes: 19 additions & 0 deletions packages/system/data_stream/network/fields/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,22 @@
type: long
description: |
The number of outgoing packets that were dropped. This value is always 0 on Darwin and BSD because it is not reported by the operating system.
- name: host
type: group
fields:
- name: network.in.bytes
type: scaled_float
description: |
The number of bytes received on all network interfaces by the host in a given period of time.
- name: network.out.bytes
type: scaled_float
description: |
The number of bytes sent out on all network interfaces by the host in a given period of time.
- name: network.in.packets
type: scaled_float
description: |
The number of packets received on all network interfaces by the host in a given period of time.
- name: network.out.packets
type: scaled_float
description: |
The number of packets sent out on all network interfaces by the host in a given period of time.
7 changes: 7 additions & 0 deletions packages/system/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ This dataset is available on:
| data_stream.namespace | Data stream namespace. | constant_keyword |
| data_stream.type | Data stream type. | constant_keyword |
| host.architecture | Operating system architecture. | keyword |
| host.cpu.pct | Percent CPU used. This value is normalized by the number of CPU cores and it ranges from 0 to 1. | scaled_float |
| host.ip | Host ip address. | ip |
| host.mac | Host mac address. | keyword |
| 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 |
Expand Down Expand Up @@ -150,6 +151,8 @@ This dataset is available on:
| data_stream.namespace | Data stream namespace. | constant_keyword |
| data_stream.type | Data stream type. | constant_keyword |
| host.architecture | Operating system architecture. | keyword |
| host.disk.read.bytes | The total number of bytes read successfully in a given period of time. | scaled_float |
| host.disk.write.bytes | The total number of bytes write successfully in a given period of time. | scaled_float |
| host.ip | Host ip address. | ip |
| host.mac | Host mac address. | keyword |
| 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 |
Expand Down Expand Up @@ -381,6 +384,10 @@ This dataset is available on:
| group.id | Unique identifier for the group on the system/platform. | keyword |
| group.name | Name of the group. | keyword |
| host.hostname | Hostname of the host. It normally contains what the `hostname` command returns on the host machine. | keyword |
| host.network.in.bytes | The number of bytes received on all network interfaces by the host in a given period of time. | scaled_float |
| host.network.in.packets | The number of packets received on all network interfaces by the host in a given period of time. | scaled_float |
| host.network.out.bytes | The number of bytes sent out on all network interfaces by the host in a given period of time. | scaled_float |
| host.network.out.packets | The number of packets sent out on all network interfaces by the host in a given period of time. | scaled_float |
| message | For log events the message field contains the log message, optimized for viewing in a log viewer. For structured logs without an original message field, other fields can be concatenated to form a human-readable summary of the event. If multiple messages exist, they can be combined into one message. | text |
| process.name | Process name. Sometimes called program name or similar. | keyword |
| process.pid | Process id. | long |
Expand Down