Open MichaelKatsoulis opened 2 months ago
Pinging code owners:
processor/k8sattributes: @dmitryax @rmfitzpatrick @fatsheep9146 @TylerHelmuth
See Adding Labels via Comments if you do not have permissions to add labels yourself.
This seems reasonable. I would consider this a new "kubeadm" resource detector. Are there any other resource attribute it could detect?
Hello, I would like to take this issue if possible
Thank's @odubajDT, I have assigned this to you.
This seems reasonable. I would consider this a new "kubeadm" resource detector. Are there any other resource attribute it could detect?
There is also the k8s.cluster.uid
resource attribute which is defined in the current K8s semantic conventions: https://github.com/open-telemetry/semantic-conventions/blob/b780f480e73ffc2d1da117689475b7b9c8af610b/docs/attributes-registry/k8s.md?plain=1#L19
Maybe that would also make sense to be included in this detector?
Maybe that would also make sense to be included in this detector?
I would omit that here, and recommend users use the k8sattributes processor, which detects that by default: https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/processor/k8sattributesprocessor/README.md#configuration
Component(s)
processor/k8sattributes
Is your feature request related to a problem? Please describe.
When running Otel collector and resourcedetection processor in a local Kubernetes cluster created by kind, minikube or kube-adm there is no way currently to get the Kubernetes cluster name. These clusters are used very often for development, testing but also in production.
Describe the solution you'd like
Clusters created by kind, minikube and kube-adm produce a configmap in
kube-system
namespace calledkubeadm-config
. This looks like this and contains the cluster name.Describe alternatives you've considered
No response
Additional context
No response