From 4439fb34c8691d9f94074128e5758d47dd2ae1be Mon Sep 17 00:00:00 2001 From: kaiyan-sheng Date: Fri, 21 Aug 2020 16:21:55 -0600 Subject: [PATCH 1/4] [RFC] Add host metric fields to ECS --- rfcs/text/0005-host-metric-fields.md | 39 ++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/rfcs/text/0005-host-metric-fields.md b/rfcs/text/0005-host-metric-fields.md index 336d30e52b..0ef1cfeb28 100644 --- a/rfcs/text/0005-host-metric-fields.md +++ b/rfcs/text/0005-host-metric-fields.md @@ -26,6 +26,17 @@ Proposed 7 new fields are: +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.pct` | scaled_float | Percent CPU used. This value is normalized by the number of CPU cores and it ranges from 0 to 1. | +| `host.network.in.bytes` | long | The number of bytes received on all network interfaces by the host in a given period of time. | +| `host.network.in.packets` | long | The number of packets received on all network interfaces by the host in a given period of time. | +| `host.network.out.bytes` | long | The number of bytes sent out on all network interfaces by the host in a given period of time. | +| `host.network.out.packets` | long | The number of packets 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 read successfully in a given period of time. | +| `host.disk.write.bytes` | long | The total number of bytes write successfully in a given period of time. | +These host metrics will be collected from different kinds of hosts such as bare +metal, virtual machines or virtual machines on public clouds like AWS, Azure and +GCP. These host metrics will be the standard minimal used in resource centric UI +views. For example, when user has VMs on bare metal, AWS and Azure, these host +fields will be collected from all VMs across all platforms and displayed in a +centralized location for better monitoring experience. + ## Source data +* Bare metal +* VMs +* AWS EC2 instances +* GCP compute engines +* Azure compute VMs +No breaking changes required. +These are new fields already added into Metricbeat: +* aws ec2 metricset +* googlecloud compute metricset +* azure compute_vm metricset + +Only change would be once these fields are in ECS, we can remove these fields +from `metricbeat/_meta/fields.common.yml` file. + ## Concerns +We need to carefully define each field because when these metrics are collected +from different platforms/services, the scope of these metrics change. We need to +make sure when users are using these metrics, they are all collected to represent +the same thing. For example, `host.network.in.bytes` needs to be an aggregated +value for all network interfaces. `host.cpu.pct` needs to be a normalized value +between 0 and 1. + From d66d65c925a054d786de0e2369e31b092a5bc10f Mon Sep 17 00:00:00 2001 From: kaiyan-sheng Date: Fri, 21 Aug 2020 16:23:25 -0600 Subject: [PATCH 2/4] add pr number --- rfcs/text/0005-host-metric-fields.md | 1 + 1 file changed, 1 insertion(+) diff --git a/rfcs/text/0005-host-metric-fields.md b/rfcs/text/0005-host-metric-fields.md index 0ef1cfeb28..b15dddceef 100644 --- a/rfcs/text/0005-host-metric-fields.md +++ b/rfcs/text/0005-host-metric-fields.md @@ -156,6 +156,7 @@ e.g.: * Stage 0: https://github.com/elastic/ecs/pull/947 +* Stage 1: https://github.com/elastic/ecs/pull/950 -- Stage: **0 (strawperson)** +- Stage: **1 (proposal)** - Date: **2020-08-21**