Skip to content

Inquiry about Collecting Kubernetes Cluster Logs with Grafana Agent Deployed via Helm #4594

Answered by tpaschalis
monlor asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tpaschalis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants