From 66ce8667be915eb860d6acd6550961a3744995af Mon Sep 17 00:00:00 2001 From: Alex Resnick Date: Fri, 16 Sep 2022 20:09:08 +0000 Subject: [PATCH] [GCP] Convert GKE metricset from lightweight --- packages/gcp/changelog.yml | 5 ++ .../gke/agent/stream/stream.yml.hbs | 48 ++++++++++++++++++- packages/gcp/manifest.yml | 2 +- 3 files changed, 52 insertions(+), 3 deletions(-) diff --git a/packages/gcp/changelog.yml b/packages/gcp/changelog.yml index 0301bc912b7..77790927663 100644 --- a/packages/gcp/changelog.yml +++ b/packages/gcp/changelog.yml @@ -1,4 +1,9 @@ # newer versions go on top +- version: "2.11.1" + changes: + - description: Move GKE lightweight module config into integration + type: enhancement + link: https://github.com/elastic/integrations/pull/3797 - version: "2.11.0" changes: - description: Move Compute lightweight module config into integration diff --git a/packages/gcp/data_stream/gke/agent/stream/stream.yml.hbs b/packages/gcp/data_stream/gke/agent/stream/stream.yml.hbs index 43713a752d3..5d212d9c020 100644 --- a/packages/gcp/data_stream/gke/agent/stream/stream.yml.hbs +++ b/packages/gcp/data_stream/gke/agent/stream/stream.yml.hbs @@ -1,4 +1,4 @@ -metricsets: ["gke"] +metricsets: ["metrics"] period: {{period}} project_id: {{project_id}} {{#if credentials_file}} @@ -13,4 +13,48 @@ region: {{region}} {{#if zone}} zone: {{zone}} {{/if}} -exclude_labels: {{exclude_labels}} \ No newline at end of file +exclude_labels: {{exclude_labels}} +metrics: + - service: gke + service_metric_prefix: kubernetes.io/ + metric_types: + - "container/cpu/core_usage_time" + - "container/cpu/limit_cores" + - "container/cpu/limit_utilization" + - "container/cpu/request_cores" + - "container/cpu/request_utilization" + - "container/ephemeral_storage/limit_bytes" + - "container/ephemeral_storage/request_bytes" + - "container/ephemeral_storage/used_bytes" + - "container/memory/limit_bytes" + - "container/memory/limit_utilization" + - "container/memory/page_fault_count" + - "container/memory/request_bytes" + - "container/memory/request_utilization" + - "container/memory/used_bytes" + - "container/restart_count" + - "container/uptime" + - "node/cpu/allocatable_cores" + - "node/cpu/allocatable_utilization" + - "node/cpu/core_usage_time" + - "node/cpu/total_cores" + - "node/ephemeral_storage/allocatable_bytes" + - "node/ephemeral_storage/inodes_free" + - "node/ephemeral_storage/inodes_total" + - "node/ephemeral_storage/total_bytes" + - "node/ephemeral_storage/used_bytes" + - "node/memory/allocatable_bytes" + - "node/memory/allocatable_utilization" + - "node/memory/total_bytes" + - "node/memory/used_bytes" + - "node/network/received_bytes_count" + - "node/network/sent_bytes_count" + - "node/pid_limit" + - "node/pid_used" + - "node_daemon/cpu/core_usage_time" + - "node_daemon/memory/used_bytes" + - "pod/network/received_bytes_count" + - "pod/network/sent_bytes_count" + - "pod/volume/total_bytes" + - "pod/volume/used_bytes" + - "pod/volume/utilization" \ No newline at end of file diff --git a/packages/gcp/manifest.yml b/packages/gcp/manifest.yml index 696d9c0f260..cf4d3370d59 100644 --- a/packages/gcp/manifest.yml +++ b/packages/gcp/manifest.yml @@ -1,6 +1,6 @@ name: gcp title: Google Cloud Platform -version: "2.11.0" +version: "2.11.1" release: ga description: Collect logs from Google Cloud Platform with Elastic Agent. type: integration