Use docker-compose to deploy the latest version of loki+promtail+grafana to collect Nginx log process records

Original link: https://wiki.eryajf.net/pages/e8500e/

79debee40cdbb1b1.jpg

In some lightweight scenarios, it would be cumbersome to use the ELK solution to solve the log problem. I have heard that Loki is more popular. I have been tossing a lot today, so I would like to record the whole process. This article does not involve the in-depth use and research of Loki, but by referring to this article, you can quickly pull up Loki and correctly collect Nginx logs.

This article is transferred from: https://wiki.eryajf.net/pages/e8500e/
This site is only for collection, and the copyright belongs to the original author.