From c2f141ba107d082b1250701f57c8d7db87a9114e Mon Sep 17 00:00:00 2001 From: kaiyan-sheng Date: Tue, 1 Dec 2020 12:18:05 -0700 Subject: [PATCH] [RFC] Add host metric fields to ECS (stage 2) (#1028) --- rfcs/text/0005-host-metric-fields.md | 25 +++-- rfcs/text/0005/ec2.json | 150 +++++++++++++++++++++++++++ rfcs/text/0005/host.yml | 61 +++++++++++ 3 files changed, 223 insertions(+), 13 deletions(-) create mode 100644 rfcs/text/0005/ec2.json create mode 100644 rfcs/text/0005/host.yml diff --git a/rfcs/text/0005-host-metric-fields.md b/rfcs/text/0005-host-metric-fields.md index 64d964c482..f604a40008 100644 --- a/rfcs/text/0005-host-metric-fields.md +++ b/rfcs/text/0005-host-metric-fields.md @@ -1,8 +1,8 @@ # 0005: Host Metric Fields -- Stage: **1 (proposal)** -- Date: **2020-10-13** +- Stage: **2 (draft)** +- Date: **TBD** -This RFC calls for the addition of host fields to collect basic monitoring metrics from a host or VM such as CPU, network and disk. - -| field | type | description | -| --- | --- | --- | -| `host.cpu.usage` | scaled_float (scaling_factor 1000) | Percent CPU used with scaling_factor of 1000. This value is normalized by 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 2 cores, between 0 and 1. | -| `host.network.ingress.bytes` | long | The number of bytes received (gauge) on all network interfaces by the host in a given period of time. | -| `host.network.ingress.packets` | long | The number of packets (gauge) received on all network interfaces by the host in a given period of time. | -| `host.network.egress.bytes` | long | The number of bytes (gauge) sent out on all network interfaces by the host in a given period of time. | -| `host.network.egress.packets` | long | The number of packets (gauge) sent out on all network interfaces by the host in a given period of time. | -| `host.disk.read.bytes` | long | The total number of bytes (gauge) read successfully in a given period of time. | -| `host.disk.write.bytes` | long | The total number of bytes (gauge) write successfully in a given period of time. | +Please see example source document from AWS EC2 instance in +[rfcs/text/0005/ec2.json](0005/ec2.json). + @@ -159,6 +157,7 @@ e.g.: * Stage 0: https://github.com/elastic/ecs/pull/947 * Stage 1: https://github.com/elastic/ecs/pull/950 +* Stage 2: https://github.com/elastic/ecs/pull/1028