SigNoz / charts

Helm Charts for SigNoz
MIT License
63 stars 67 forks source link

Collect Kubernetes Pod Logs in Self-Hosted SigNoz Fail to open file: Permission denied #420

Open leehungitc opened 3 months ago

leehungitc commented 3 months ago

I follow this guide: https://signoz.io/docs/tutorial/kubernetes-infra-metrics/#steps-to-export-kubernetes-metrics-to-signoz to collect Kubernets Pod logs and send them to self-host signow. Otel agent pod is running but I check signoz have not received any log. I check logs pod otel agent many error: Failed to open file {"kind": "receiver", "name": "filelog/k8s", "data_type": "logs", "component": "fileconsumer", "error": "open /var/log/pods/argocd_argocd-dex-server-8496698f-bg9tn_9801c57e-bacd-410a-89df-17f77078602c/copyutil/0.log: permission denied"}. I try set runAsUser: 0 but It doesn't work. Any suggestion?