From cf9aad2d2a502efbe79f8d6aa4084a9f53821c72 Mon Sep 17 00:00:00 2001 From: Andrew Wilkins Date: Wed, 9 Dec 2020 10:23:48 +0800 Subject: [PATCH] [Monitoring] add field mappings for beats cgroups (#65997) Add field mappings for the cgroups metrics added to beats monitoring in https://github.com/elastic/beats/pull/21113, and required by https://github.com/elastic/kibana/issues/79050. --- .../src/main/resources/monitoring-beats.json | 85 +++++++++++++++++++ 1 file changed, 85 insertions(+) diff --git a/x-pack/plugin/core/src/main/resources/monitoring-beats.json b/x-pack/plugin/core/src/main/resources/monitoring-beats.json index a636685beb8a..ea9afbd04d5c 100644 --- a/x-pack/plugin/core/src/main/resources/monitoring-beats.json +++ b/x-pack/plugin/core/src/main/resources/monitoring-beats.json @@ -146,6 +146,91 @@ "properties": { "beat": { "properties": { + "cgroup": { + "properties": { + "cpu": { + "properties": { + "id": { + "type": "keyword" + }, + "cfs": { + "properties": { + "period": { + "properties": { + "us": { + "type": "long" + } + } + }, + "quota": { + "properties": { + "us": { + "type": "long" + } + } + } + } + }, + "stats": { + "properties": { + "periods": { + "type": "long" + }, + "throttled": { + "properties": { + "periods": { + "type": "long" + }, + "ns": { + "type": "long" + } + } + } + } + } + } + }, + "cpuacct": { + "properties": { + "id": { + "type": "keyword" + }, + "total": { + "properties": { + "ns": { + "type": "long" + } + } + } + } + }, + "memory": { + "properties": { + "id": { + "type": "keyword" + }, + "mem": { + "properties": { + "limit": { + "properties": { + "bytes": { + "type": "long" + } + } + }, + "usage": { + "properties": { + "bytes": { + "type": "long" + } + } + } + } + } + } + } + } + }, "cpu": { "properties": { "system": {