Skip to content

Latest commit

 

History

History
47 lines (36 loc) · 1.73 KB

README.md

File metadata and controls

47 lines (36 loc) · 1.73 KB

Loki docker-compose

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.

Running

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.

  1. 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
  2. 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
  3. 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
  4. Access grafana
    1. Add sources :
    2. Go to explorer and have fun !

Author

Romain Fluttaz