Logging With Docker, Promtail and Grafana Loki

In this post we will use Grafana Promtail to collect all our logs and ship it to Grafana Loki. About We will be using Docker Compose and mount the docker socket to Grafana Promtail so that it is aware of all the docker events and configure it that only containers with docker labels logging=promtail needs to be enabled for logging, which will then scrape those logs and send it to Grafana Loki where we will visualize it in Grafana....

November 18, 2022 Β· 3 min Β· Ruan Bekker