From ec9b2c79d215fd8d0bea0f2ff6179375dd0e3928 Mon Sep 17 00:00:00 2001 From: Kristof Gyuracz Date: Thu, 6 Jun 2024 16:13:06 +0200 Subject: [PATCH] fix metric attributes --- internal/controller/telemetry/otel_conf_gen.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/internal/controller/telemetry/otel_conf_gen.go b/internal/controller/telemetry/otel_conf_gen.go index 26f376d..3bab884 100644 --- a/internal/controller/telemetry/otel_conf_gen.go +++ b/internal/controller/telemetry/otel_conf_gen.go @@ -465,6 +465,9 @@ func generateCountConnectors() map[string]any { { Key: "k8s.pod.labels.app.kubernetes.io/name", }, + { + Key: "k8s.pod.labels.app", + }, }, }, }, @@ -498,6 +501,9 @@ func generateCountConnectors() map[string]any { { Key: "k8s.pod.labels.app.kubernetes.io/name", }, + { + Key: "k8s.pod.labels.app", + }, }, }, }, @@ -555,11 +561,6 @@ func generateMetricsProcessors() map[string]any { metricsProcessors["attributes/metricattributes"] = AttributesProcessor{ Actions: []AttributesProcessorAction{ - { - Action: "insert", - Key: "app", - FromAttribute: "k8s.pod.labels.app.kubernetes.io/name", - }, { Action: "insert", Key: "host",