grafana / k8s-monitoring-helm

Apache License 2.0
200 stars 79 forks source link

How do collect logs from Windows nodes/pods #641

Open PavelPikat opened 3 months ago

PavelPikat commented 3 months ago

Hi, I've set up log collection from Pods that run on Linux nodes and it's working great. Is there a way to set Alloy up to also collect logs from Pods that run on Windows nodes? I suppose the different would be on the path where logs are stored on Windows nodes, but not sure where & how I would configure it in this chart - is this possible?

petewall commented 2 months ago

I need to do some research into seeing if we can put an Alloy pod on a Windows node and scrape the logs there.

in the meantime, switching to the API-based gathering method should work. Take the logs and alloy-logs sections from this example: https://github.com/grafana/k8s-monitoring-helm/tree/main/examples/eks-fargate

PavelPikat commented 2 months ago

@petewall thank you for the reply. API mode is working well, and we are able to see both Linux and Windows logs now. Are there any considerations or risks using this mode? Higher load on kubelet? Is it production safe?