docker
未读
Docker Compose 部署 Loki 与 Grafana
This article discusses the deployment of Loki and Grafana using Docker Compose, focusing on configuring and setting up the system. It covers the integration of Loki, a time-series database, and Grafana, a visualization tool, via Docker Compose to streamline the monitoring and logging process. The article provides steps for creating Docker volumes, configuring the Loki and Grafana settings, and setting up Grafana dashboards.
springboot
未读
Spring Boot 集成 Loki:构建轻量级日志系统的完整实践指南
为什么选择 Loki? 在微服务架构中,传统日志系统(如 ELK)面临资源消耗大、部署复杂等问题。Loki 作为 Grafana Labs 推出的轻量级日志聚合工具,通过 标签索引 替代全文检索,存储效率提升 50% 以上,尤其适合中小型项目或资源受限环境(如 2G 内存服务器)。结合 Spring