Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Kubernetes attributes to OpenTelemetry data #37008

Open
AlanMasciangelo opened this issue Nov 10, 2023 · 2 comments
Open

Add Kubernetes attributes to OpenTelemetry data #37008

AlanMasciangelo opened this issue Nov 10, 2023 · 2 comments

Comments

@AlanMasciangelo
Copy link

Description

Add Kubernetes attributes to telemetry data when using the Quarkus Kubernetes and OpenTelemetry plugins.

OpenTelemetry defines a set of attributes useful for telemetry data for Kubernetes workloads as part of their "Kubernetes Collector". The attributes included with spans to understand where the span came from and additional context. Default attributes are:

  • k8s.namespace.name
  • k8s.pod.name
  • k8s.pod.uid
  • k8s.pod.start_time
  • k8s.deployment.name
  • k8s.node.name

Currently, otel resource attributes can be used to add some of this data. For example, setting quarkus.otel.resource.attributes="k8s.pod.name=${HOSTNAME}".

Implementation ideas

This could be implemented as a Resource which retrieves the necessary information via the kube api

@quarkus-bot
Copy link

quarkus-bot bot commented Nov 10, 2023

/cc @brunobat (opentelemetry), @geoand (kubernetes), @iocanel (kubernetes), @radcortez (opentelemetry)

@geoand
Copy link
Contributor

geoand commented Nov 14, 2023

@AlanMasciangelo would you be willing to contribute this feature?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

2 participants