From 1288b8fc52f187b9cfc690b1266c4f67680dba3e Mon Sep 17 00:00:00 2001 From: Michael Hirsch Date: Tue, 15 Sep 2020 20:00:32 -0400 Subject: [PATCH] updates chunking config --- .../metrics_ui_hosts/ml/datafeed_hosts_cpu_usage.json | 8 ++++++-- .../metrics_ui_hosts/ml/datafeed_hosts_network_in.json | 4 ++-- .../metrics_ui_hosts/ml/datafeed_hosts_network_out.json | 4 ++-- .../metrics_ui_k8s/ml/datafeed_k8s_network_in.json | 6 +++--- .../metrics_ui_k8s/ml/datafeed_k8s_network_out.json | 6 +++--- 5 files changed, 16 insertions(+), 12 deletions(-) diff --git a/x-pack/plugins/ml/server/models/data_recognizer/modules/metrics_ui_hosts/ml/datafeed_hosts_cpu_usage.json b/x-pack/plugins/ml/server/models/data_recognizer/modules/metrics_ui_hosts/ml/datafeed_hosts_cpu_usage.json index 3e0924041f4cb..66f48bad4d910 100644 --- a/x-pack/plugins/ml/server/models/data_recognizer/modules/metrics_ui_hosts/ml/datafeed_hosts_cpu_usage.json +++ b/x-pack/plugins/ml/server/models/data_recognizer/modules/metrics_ui_hosts/ml/datafeed_hosts_cpu_usage.json @@ -6,6 +6,10 @@ "indices_options": { "allow_no_indices": true }, + "chunking_config": { + "mode": "manual", + "time_span": "900s" + }, "query": { "bool": { "must": [ @@ -21,13 +25,13 @@ "host.name": { "terms": { "field": "host.name", - "size": 1000 + "size": 100 }, "aggs": { "buckets": { "date_histogram": { "field": "@timestamp", - "fixed_interval": "1m" + "fixed_interval": "5m" }, "aggs": { "@timestamp": { diff --git a/x-pack/plugins/ml/server/models/data_recognizer/modules/metrics_ui_hosts/ml/datafeed_hosts_network_in.json b/x-pack/plugins/ml/server/models/data_recognizer/modules/metrics_ui_hosts/ml/datafeed_hosts_network_in.json index 9c8218e0cbe0a..7eb430632a81f 100644 --- a/x-pack/plugins/ml/server/models/data_recognizer/modules/metrics_ui_hosts/ml/datafeed_hosts_network_in.json +++ b/x-pack/plugins/ml/server/models/data_recognizer/modules/metrics_ui_hosts/ml/datafeed_hosts_network_in.json @@ -15,10 +15,10 @@ }, "chunking_config": { "mode": "manual", - "time_span": "1000s" + "time_span": "900s" }, "aggregations": { - "host.name": {"terms": {"field": "host.name", "size": 1000}, + "host.name": {"terms": {"field": "host.name", "size": 100}, "aggregations": { "buckets": { "date_histogram": {"field": "@timestamp","fixed_interval": "5m"}, diff --git a/x-pack/plugins/ml/server/models/data_recognizer/modules/metrics_ui_hosts/ml/datafeed_hosts_network_out.json b/x-pack/plugins/ml/server/models/data_recognizer/modules/metrics_ui_hosts/ml/datafeed_hosts_network_out.json index e08158eef92a8..427cb678ce663 100644 --- a/x-pack/plugins/ml/server/models/data_recognizer/modules/metrics_ui_hosts/ml/datafeed_hosts_network_out.json +++ b/x-pack/plugins/ml/server/models/data_recognizer/modules/metrics_ui_hosts/ml/datafeed_hosts_network_out.json @@ -15,10 +15,10 @@ }, "chunking_config": { "mode": "manual", - "time_span": "1000s" + "time_span": "900s" }, "aggregations": { - "host.name": {"terms": {"field": "host.name", "size": 1000}, + "host.name": {"terms": {"field": "host.name", "size": 100}, "aggregations": { "buckets": { "date_histogram": {"field": "@timestamp","fixed_interval": "5m"}, diff --git a/x-pack/plugins/ml/server/models/data_recognizer/modules/metrics_ui_k8s/ml/datafeed_k8s_network_in.json b/x-pack/plugins/ml/server/models/data_recognizer/modules/metrics_ui_k8s/ml/datafeed_k8s_network_in.json index a8a45a4179fcc..4fa4c603ea049 100644 --- a/x-pack/plugins/ml/server/models/data_recognizer/modules/metrics_ui_k8s/ml/datafeed_k8s_network_in.json +++ b/x-pack/plugins/ml/server/models/data_recognizer/modules/metrics_ui_k8s/ml/datafeed_k8s_network_in.json @@ -15,12 +15,12 @@ }, "chunking_config": { "mode": "manual", - "time_span": "1000s" + "time_span": "900s" }, "aggregations": { - "kubernetes.namespace": {"terms": {"field": "kubernetes.namespace", "size": 1000}, + "kubernetes.namespace": {"terms": {"field": "kubernetes.namespace", "size": 25}, "aggregations": { - "kubernetes.pod.uid": {"terms": {"field": "kubernetes.pod.uid", "size": 1000}, + "kubernetes.pod.uid": {"terms": {"field": "kubernetes.pod.uid", "size": 100}, "aggregations": { "buckets": { "date_histogram": {"field": "@timestamp","fixed_interval": "5m"}, diff --git a/x-pack/plugins/ml/server/models/data_recognizer/modules/metrics_ui_k8s/ml/datafeed_k8s_network_out.json b/x-pack/plugins/ml/server/models/data_recognizer/modules/metrics_ui_k8s/ml/datafeed_k8s_network_out.json index 347963577c7ef..633dd6bf490e7 100644 --- a/x-pack/plugins/ml/server/models/data_recognizer/modules/metrics_ui_k8s/ml/datafeed_k8s_network_out.json +++ b/x-pack/plugins/ml/server/models/data_recognizer/modules/metrics_ui_k8s/ml/datafeed_k8s_network_out.json @@ -15,12 +15,12 @@ }, "chunking_config": { "mode": "manual", - "time_span": "1000s" + "time_span": "900s" }, "aggregations": { - "kubernetes.namespace": {"terms": {"field": "kubernetes.namespace", "size": 1000}, + "kubernetes.namespace": {"terms": {"field": "kubernetes.namespace", "size": 25}, "aggregations": { - "kubernetes.pod.uid": {"terms": {"field": "kubernetes.pod.uid", "size": 1000}, + "kubernetes.pod.uid": {"terms": {"field": "kubernetes.pod.uid", "size": 100}, "aggregations": { "buckets": { "date_histogram": {"field": "@timestamp","fixed_interval": "5m"},