Like Prometheus, but for logs.日志收集系统 https://github.com/grafana/loki

天问 0ada249e48 Update 'README.md' 3 months ago
README.md 0ada249e48 Update 'README.md' 3 months ago

README.md

loki

Like Prometheus, but for logs.日志收集系统

Usage

wget https://raw.githubusercontent.com/grafana/loki/v2.9.4/cmd/loki/loki-local-config.yaml -O loki-config.yaml
docker run --name loki -d -v $(pwd):/mnt/config -p 3100:3100 grafana/loki:2.9.4 -config.file=/mnt/config/loki-config.yaml
wget https://raw.githubusercontent.com/grafana/loki/v2.9.4/clients/cmd/promtail/promtail-docker-config.yaml -O promtail-config.yaml
docker run --name promtail -d -v $(pwd):/mnt/config -v /var/log:/var/log --link loki grafana/promtail:2.9.4 -config.file=/mnt/config/promtail-config.yaml