Loki is a horizontally scalable, multitenant log aggregation system that indexes labels for ingested log streams while retaining log content for retrieval. Grafana uses it as a log data source, with Promtail collecting and shipping application logs. section 5.2.2 section 2.3.2
Local echo-service logging stack
Run an echo service, mount its log file into Promtail, parse JSON fields, promote selected fields such as level and service to labels, and send events to Loki. Docker Compose starts Loki, Promtail, and Grafana; Grafana connects to http://loki:3100 for querying. Use Kubernetes with Helm or Tanka for production-oriented deployment. section 2.3.2
