open-telemetry / opentelemetry-operator

Kubernetes Operator for OpenTelemetry Collector
Apache License 2.0
1.2k stars 438 forks source link

Add support for k8s labels such as app.kubernetes.io/name #3112

Closed zeitlinger closed 1 month ago

zeitlinger commented 3 months ago

Component(s)

auto-instrumentation

Is your feature request related to a problem? Please describe.

k8s labels such as app.kubernetes.io/name are recommended to set the app name and similar

See https://kubernetes.io/docs/concepts/overview/working-with-objects/common-labels/

this should be supported by the otel operator

Describe the solution you'd like

This mapping should work for the following labels:

And for the following annotations:

Describe alternatives you've considered

No response

Additional context

No response

jaronoff97 commented 2 months ago

@zeitlinger is this different from this issue? Wondering if i can merge these together.

zeitlinger commented 2 months ago

@zeitlinger is this different from this issue? Wondering if i can merge these together.

didn't know about it looks very similar

jaronoff97 commented 2 months ago

I think i prefer the resource.opentelemetry.io/, and agreed, I think your PR handles more. I'm going to close that issue and PR in favor of this one.

zeitlinger commented 2 months ago

resource.opentelemetry.io/

changed

jaronoff97 commented 2 months ago

@zeitlinger i added the discuss-at-sig label as it seems from Tyler's comment on the PR that there's some bigger picture stuff we need to figure out in order to not break users. We have a SIG meeting tomorrow (8/29) at noon EST where we will discuss this.

zeitlinger commented 2 months ago

@zeitlinger i added the discuss-at-sig label as it seems from Tyler's comment on the PR that there's some bigger picture stuff we need to figure out in order to not break users. We have a SIG meeting tomorrow (8/29) at noon EST where we will discuss this.

great - I'll join