I’m testing out promtail in a container, to scrape host logs; I’d like to know which paths
docker_sd_config needs to be bind mounted from the host, in order to scrape logs about containers. Sort of analogous to how you have to mount
/etc/macine-id into the container for the
syslog scrape config.
I can guess that
/var/run/docker needs to be bind mounted, read-only, but I’m unsure as to what else does. I didn’t find anything about this in the docs: Configuration | Grafana Loki documentation
c.f. the paths that
cadvisor needs mounted: GitHub - google/cadvisor: Analyzes resource usage and performance characteristics of running containers.
Thanks for all the work you do!