microsoft / retina

eBPF distributed networking observability tool for Kubernetes
https://retina.sh
MIT License
2.52k stars 172 forks source link

ideally agent's init container enables telemetry based on ConfigMap flag #339

Open huntergregory opened 2 months ago

huntergregory commented 2 months ago

If an ApplicationInsightsID is set at image build time, then the retina-agent-init container seems to enable telemetry here: https://github.com/microsoft/retina/blob/6946babd353e3afae17a5a054209b7af3e8933bf/init/retina/main_linux.go#L26-L33

Instead, it should enable telemetry if ApplicationInsightsID is set AND enableTelemetry is true: https://github.com/microsoft/retina/blob/6946babd353e3afae17a5a054209b7af3e8933bf/deploy/manifests/controller/helm/retina/templates/configmap.yaml#L19

Carpe-Wang commented 1 month ago

Would I handle this issue?