From 884d96fcfe617537f7cadf24928d5e8b50d55226 Mon Sep 17 00:00:00 2001 From: Matej Gera Date: Fri, 4 Aug 2023 13:01:11 +0200 Subject: [PATCH 1/2] Adjust kube-events transform processor config Signed-off-by: Matej Gera --- otel-integration/k8s-helm/values.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/otel-integration/k8s-helm/values.yaml b/otel-integration/k8s-helm/values.yaml index ea499ec5..1b5606a4 100644 --- a/otel-integration/k8s-helm/values.yaml +++ b/otel-integration/k8s-helm/values.yaml @@ -327,7 +327,9 @@ opentelemetry-cluster-collector: log_statements: - context: log statements: - - keep_keys(body, ["type", "action", "eventTime", "reason", "regarding", "reportingController", "note", "series", "metadata", "deprecatedFirstTimestamp", "deprecatedLastTimestamp"]) + - keep_keys(body["object"], ["type", "eventTime", "reason", "regarding", "note", "metadata", "deprecatedFirstTimestamp", "deprecatedLastTimestamp"]) + - keep_keys(body["object"]["metadata"], ["creationTimestamp"]) + - keep_keys(body["object"]["regarding"], ["kind", "name", "namespace"]) metricstransform/kube-extra-metrics: transforms: include: .* From c40c6da356c70505935b1cdf43656b100de3731d Mon Sep 17 00:00:00 2001 From: Matej Gera Date: Fri, 4 Aug 2023 13:01:21 +0200 Subject: [PATCH 2/2] Bump chart and add CHANGELOG Signed-off-by: Matej Gera --- otel-integration/CHANGELOG.md | 4 ++++ otel-integration/k8s-helm/Chart.yaml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/otel-integration/CHANGELOG.md b/otel-integration/CHANGELOG.md index fae0af87..50117618 100644 --- a/otel-integration/CHANGELOG.md +++ b/otel-integration/CHANGELOG.md @@ -2,6 +2,10 @@ ## OpenTelemtry-Integration +### v0.0.5 / 2023-08-04 + +* [FIX] Fix `kube-event` transfrom processor configuration to correctly filter log body keys + ### v0.0.4 / 2023-08-03 * [FEATURE] Add cluster metrics related to allocatable resources (CPU, memory) diff --git a/otel-integration/k8s-helm/Chart.yaml b/otel-integration/k8s-helm/Chart.yaml index 15453379..3a65c575 100644 --- a/otel-integration/k8s-helm/Chart.yaml +++ b/otel-integration/k8s-helm/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 name: otel-integration description: OpenTelemetry Integration -version: 0.0.4 +version: 0.0.5 keywords: - OpenTelemetry Collector - OpenTelemetry Agent