Skip to content

Commit

Permalink
[otel-integration] Fix kube events transform (#265)
Browse files Browse the repository at this point in the history
* Adjust kube-events transform processor config

Signed-off-by: Matej Gera <matejgera@gmail.com>

* Bump chart and add CHANGELOG

Signed-off-by: Matej Gera <matejgera@gmail.com>

---------

Signed-off-by: Matej Gera <matejgera@gmail.com>
  • Loading branch information
matej-g authored Aug 4, 2023
1 parent e12aa77 commit 90a84ea
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions otel-integration/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion otel-integration/k8s-helm/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 3 additions & 1 deletion otel-integration/k8s-helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: .*
Expand Down

0 comments on commit 90a84ea

Please sign in to comment.