Is it mandatory to use both daemonset and sidecar ...
# support
v
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
Hi @Bellary Naga Aditya, For the autoinstrumentation via otel operator in K8s, daemonset is needed. But the sidecar is not mandatory.
b
@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
I think there is some misunderstanding here. By sidecar, I meant the sidecar otel collectors which are not required.
But for auto-instrumentation otel instrumentation sidecar is mandatory - which is injected automatically based on the pod annotation
b
Got it. So now i have to have both daemonset(for node metrics) and sidecar(for apm)