We are new to mtail and use it to collect metrics from our nginx log.
We plan to run mtail as a daemonset for each of our k8s nodes.
Our mtail daemon pod mount `/var/lib/docker/containers` from the k8s node. This folder contains the log files from the node we which to monitor.
However all those log files are in a sub-directory:
I was wondering if you anyone have some best practice regarding the usage of mtail with k8s.
Would it make more sens to run mtail as a sidecar container for each of our nodes.
Or keeping the daemonset approach but with a different approach to be able to watch all the log files directly with mtail? (for example, use symlink to flatten the folder hierachy).