Loki log aggregation system with docker-compose.
Whith this project you can test out loki with :
- Cassandra as index db
- Minio as chunks db
- Promtail
- Prometheus and cadvisor
- Traefik reverse-proxy for ssl
We recommand to use helm chart or check out the doc for production use. This repository will kickstart a loki instance to check out capabilities and configurations tweaks.
Copy .env.dist
to .env
and /config/loki-config.yaml.dist
to /config/loki-config.yaml
and edit the two files.
You need to set minio access_key and secret in /config/loki-config.yaml
.
To get a fully running stack, run docker-service-traefik with this docker-compose.
- Copy configurations files
# Copy env.dist cp .env.dist .env && cp config/loki-config.yaml.dist config/loki-config.yaml # Edit .env with your editor vim .env config/loki-config.yaml
- Check configuration
docker-compose -f docker-compose.yml -f compose/cassandra.yml -f compose/minio.yml -f compose/prometheus.yaml -f compose/traefik.yml config
- Run the stack
docker-compose -f docker-compose.yml -f compose/cassandra.yml -f compose/minio.yml -f compose/prometheus.yaml -f compose/traefik.yml up -d
- Access grafana
- Add sources :
- loki : https://$LOKI_DOMAIN with header
X-Scope-OrgI: loki-internal
. - prometheus: http://prometheus:9090
- loki : https://$LOKI_DOMAIN with header
- Go to explorer and have fun !
- Add sources :
Romain Fluttaz