Inquiry about Collecting Kubernetes Cluster Logs with Grafana Agent Deployed via Helm #4594
-
Issue Description: Use Case: Question: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
To achieve this, you can deploy Grafana Agent in Daemonset mode, mount the /var/log/pods or equivalent directory with the correct permissions and scrape logs from there. If you're feeling adventurous, in Flow mode we have a new experimental component, loki.source.kubernetes that reads logs directly from the Kubernetes API and doesn't require a Daemonset to work, but might not be suitable for production workloads yet, YMMV. |
Beta Was this translation helpful? Give feedback.
To achieve this, you can deploy Grafana Agent in Daemonset mode, mount the /var/log/pods or equivalent directory with the correct permissions and scrape logs from there.
If you're feeling adventurous, in Flow mode we have a new experimental component, loki.source.kubernetes that reads logs directly from the Kubernetes API and doesn't require a Daemonset to work, but might not be suitable for production workloads yet, YMMV.