-
Notifications
You must be signed in to change notification settings - Fork 453
[RFC] Add host metric fields to ECS (stage 2) #1028
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
Merged
Merged
Changes from 5 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
8d414ea
Stage 2 for adding host metric fields
43b3c06
add RFC stage 2 PR link
57e08dc
Merge remote-tracking branch 'upstream/master' into add_host_fields
80397cf
move ec2 file example into rfcs/text/0005/ec2.yml
03a4cc9
add 0005/host.yml
b19e7fa
change host.cpu.usage description and disk.write.bytes
55390d0
update fields to specify values are collected since the last collection
be0e4ff
Fix typo
kaiyan-sheng File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,150 @@ | ||
| { | ||
| "_index": "metricbeat-8.0.0-2020.10.13-000001", | ||
| "_type": "_doc", | ||
| "_id": "7P6XKnUBnE_5JbVxdPGQ", | ||
| "_version": 1, | ||
| "_score": null, | ||
| "_source": { | ||
| "@timestamp": "2020-10-15T04:39:00.000Z", | ||
| "host": { | ||
| "id": "i-04c1a32c2aace6b40", | ||
| "name": "i-04c1a32c2aace6b40", | ||
| "cpu": { | ||
| "usage": 0.0020056497175091896 | ||
| }, | ||
| "disk": { | ||
| "write": { | ||
| "bytes": 0 | ||
| }, | ||
| "read": { | ||
| "bytes": 0 | ||
| } | ||
| }, | ||
| "network": { | ||
| "ingress": { | ||
| "bytes": 157612, | ||
| "packets": 2272 | ||
| }, | ||
| "egress": { | ||
| "bytes": 79944, | ||
| "packets": 1199 | ||
| } | ||
| } | ||
| }, | ||
| "event": { | ||
| "dataset": "aws.ec2", | ||
| "module": "aws", | ||
| "duration": 23277249413 | ||
| }, | ||
| "metricset": { | ||
| "name": "ec2", | ||
| "period": 300000 | ||
| }, | ||
| "service": { | ||
| "type": "aws" | ||
| }, | ||
| "agent": { | ||
| "type": "metricbeat", | ||
| "version": "8.0.0", | ||
| "ephemeral_id": "f0733710-5558-4346-966d-28b4231e0765", | ||
| "id": "a8a83d26-7399-4bc3-bde6-a385aa3c14e4", | ||
| "name": "KaiyanMacBookPro" | ||
| }, | ||
| "ecs": { | ||
| "version": "1.6.0" | ||
| }, | ||
| "aws": { | ||
| "ec2": { | ||
| "instance": { | ||
| "image": { | ||
| "id": "ami-0b418580298265d5c" | ||
| }, | ||
| "state": { | ||
| "code": 16, | ||
| "name": "running" | ||
| }, | ||
| "monitoring": { | ||
| "state": "disabled" | ||
| }, | ||
| "core": { | ||
| "count": 1 | ||
| }, | ||
| "threads_per_core": 1, | ||
| "public": { | ||
| "ip": "3.122.204.80", | ||
| "dns_name": "" | ||
| }, | ||
| "private": { | ||
| "ip": "10.0.0.122", | ||
| "dns_name": "ip-10-0-0-122.eu-central-1.compute.internal" | ||
| } | ||
| }, | ||
| "cpu": { | ||
| "credit_usage": 0.009044, | ||
| "credit_balance": 144, | ||
| "surplus_credit_balance": 0, | ||
| "surplus_credits_charged": 0, | ||
| "total": { | ||
| "pct": 0.20056497175091897 | ||
| } | ||
| }, | ||
| "status": { | ||
| "check_failed_system": 0, | ||
| "check_failed": 0, | ||
| "check_failed_instance": 0 | ||
| }, | ||
| "network": { | ||
| "in": { | ||
| "bytes": 157612, | ||
| "packets": 2272, | ||
| "bytes_per_sec": 525.3733333333333, | ||
| "packets_per_sec": 7.573333333333333 | ||
| }, | ||
| "out": { | ||
| "packets": 1199, | ||
| "bytes": 79944, | ||
| "bytes_per_sec": 266.48, | ||
| "packets_per_sec": 3.9966666666666666 | ||
| } | ||
| }, | ||
| "diskio": { | ||
| "write": { | ||
| "bytes": 0, | ||
| "count": 0, | ||
| "bytes_per_sec": 0, | ||
| "count_per_sec": 0 | ||
| }, | ||
| "read": { | ||
| "bytes": 0, | ||
| "count": 0, | ||
| "bytes_per_sec": 0, | ||
| "count_per_sec": 0 | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "cloud": { | ||
| "machine": { | ||
| "type": "t2.micro" | ||
| }, | ||
| "availability_zone": "eu-central-1a", | ||
| "provider": "aws", | ||
| "region": "eu-central-1", | ||
| "account": { | ||
| "name": "elastic-beats", | ||
| "id": "428152502467" | ||
| }, | ||
| "instance": { | ||
| "id": "i-04c1a32c2aace6b40" | ||
| } | ||
| } | ||
| }, | ||
| "fields": { | ||
| "@timestamp": [ | ||
| "2020-10-15T04:39:00.000Z" | ||
| ] | ||
| }, | ||
| "sort": [ | ||
| 1602736740000 | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| - name: host | ||
| fields: | ||
| - name: cpu.usage | ||
| type: scaled_float | ||
| scaling_factor: 1000 | ||
| level: extended | ||
| short: Percent CPU used with scaling factor of 1000. | ||
| description: > | ||
| Percent CPU used with scaling factor of 1000. This value is normalized by | ||
|
webmat marked this conversation as resolved.
Outdated
|
||
| the number of CPU cores and it ranges from 0 to 1. | ||
|
|
||
| For example: For a two core host, this value should be the average of the | ||
| two cores, between 0 and 1. | ||
|
|
||
| - name: network.ingress.bytes | ||
| type: long | ||
| level: extended | ||
| short: The number of bytes received on all network interfaces. | ||
| description: > | ||
| The number of bytes received (gauge) on all network interfaces by the | ||
| host in a given period of time. | ||
|
|
||
| - name: network.ingress.packets | ||
| type: long | ||
| level: extended | ||
| short: The number of packets received on all network interfaces. | ||
| description: > | ||
| The number of packets (gauge) received on all network interfaces by the | ||
| host in a given period of time. | ||
|
|
||
| - name: network.egress.bytes | ||
| type: long | ||
| level: extended | ||
| short: The number of bytes sent on all network interfaces. | ||
| description: > | ||
| The number of bytes (gauge) sent out on all network interfaces by the | ||
| host in a given period of time. | ||
|
|
||
| - name: network.egress.packets | ||
| type: long | ||
| level: extended | ||
| short: The number of packets sent on all network interfaces. | ||
| description: > | ||
| The number of packets (gauge) sent out on all network interfaces by the | ||
| host in a given period of time. | ||
|
|
||
| - name: disk.read.bytes | ||
| type: long | ||
| level: extended | ||
| short: The number of bytes read by all disks. | ||
| description: > | ||
| The total number of bytes (gauge) read successfully (aggregated from all | ||
| disks) in a given period of time. | ||
|
|
||
| - name: disk.write.bytes | ||
| type: long | ||
| level: extended | ||
| short: The number of bytes write by all disks. | ||
|
kaiyan-sheng marked this conversation as resolved.
Outdated
|
||
| description: > | ||
| The total number of bytes (gauge) write successfully (aggregated from | ||
|
kaiyan-sheng marked this conversation as resolved.
Outdated
|
||
| all disks) in a given period of time. | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.