Is it mandatory to use both daemonset and sidecar to auto instrument and also get pod metrics with otel k8s operator?
Question by @Bellary Naga Aditya
cc: @Prashant Shahi
p
Prashant Shahi
10/01/2024, 9:16 AM
Hi @Bellary Naga Aditya,
For the autoinstrumentation via otel operator in K8s, daemonset is needed.
But the sidecar is not mandatory.
b
Bellary Naga Aditya
10/01/2024, 10:48 AM
@Prashant Shahi If we run using daemonset then, we need to install the otel jar and run it with the application right.
We don't want to go with that approach.
Is there any other way which can be used ? So that we get node pod and apm all three ?
p
Prashant Shahi
10/01/2024, 11:54 AM
I think there is some misunderstanding here.
By sidecar, I meant the sidecar otel collectors which are not required.
Prashant Shahi
10/01/2024, 11:55 AM
But for auto-instrumentation otel instrumentation sidecar is mandatory - which is injected automatically based on the pod annotation
b
Bellary Naga Aditya
10/01/2024, 11:57 AM
Got it. So now i have to have both daemonset(for node metrics) and sidecar(for apm)