liveBook · Manning

Loki

As explained in Cloud Observability in Action

Grafana Loki is a log aggregation system that indexes log labels while retaining the log content for retrieval.

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

How Cloud Observability in Action covers it

How deep it goes
Explains label-based indexing and demonstrates local configuration, but does not deeply cover storage internals or operations.
Examples
Uses an echo-service log file, Promtail pipeline labels, Docker Compose services, and Grafana Explore queries.
What it assumes
Assumes basic application logging and Docker Compose usage while introducing the roles of log agents, destinations, and frontends.
What you can do after
Operate/configure a local Loki stack with Promtail and Grafana, then query collected application logs.
How it connects
Connects Loki with Promtail, Grafana, Docker Compose, Kubernetes, Helm, Tanka, Prometheus, and OpenSearch.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Cloud Observability in Action. The section links point to the parts of the book it draws on.