Skip to content

Commit

Permalink
fix metric attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
kristofgyuracz committed Jun 6, 2024
1 parent 50e907f commit ec9b2c7
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions internal/controller/telemetry/otel_conf_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,9 @@ func generateCountConnectors() map[string]any {
{
Key: "k8s.pod.labels.app.kubernetes.io/name",
},
{
Key: "k8s.pod.labels.app",
},
},
},
},
Expand Down Expand Up @@ -498,6 +501,9 @@ func generateCountConnectors() map[string]any {
{
Key: "k8s.pod.labels.app.kubernetes.io/name",
},
{
Key: "k8s.pod.labels.app",
},
},
},
},
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit ec9b2c7

Please sign in to comment.