How can we add automatically k8s metadata of the container/pod?

28 views
Skip to first unread message

tejaswini vadlamudi

unread,
May 25, 2022, 4:05:08 AM5/25/22
to Jaeger Tracing
Hi,

I was wondering about the automatic addition of k8s metadata in the trace span like pod name, pod uid, node name, service name, namespace, etc. Is there any possibility to get this out of the box by configuring the agent sidecar or does the instrumentation need to make sure it has the right tags and process?

Thanks,
Teja

Joe Elliott

unread,
May 25, 2022, 8:36:00 AM5/25/22
to tejaswini vadlamudi, Jaeger Tracing
Jaeger itself is not able to do this. We use our deployment tooling to set pod specific tags through environment variables. Check out the JAEGER_TAGS env var.

The agent also supports the ability to add tags using the `--agent.tags` config option. So if a given agent only supported one namespaced, pod, cluster, etc. This would be another option to inject tags.

Finally, if you do need something more dynamic I would recommend checking out the opentelemetry collector. It has a k8sattributeprocessor that is capable of attaching tags to spans by using the ip in the span:


--
You received this message because you are subscribed to the Google Groups "Jaeger Tracing" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jaeger-tracin...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jaeger-tracing/39e838e9-b920-4d3c-8e06-e8ae711a2fa6n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages