教程

教程

在VPS上使用Grafana Loki实现集中式日志管理

通过Docker Compose在单台VPS上部署Grafana Loki、Promtail和Grafana。收集systemd、Docker和Nginx日志,使用LogQL查询,并配置日志保留策略。

4 分钟阅读阅读