Exploring Loki’s architecture
Grafana Loki has a full microservices architecture that can be run as a single binary and a simple scalable deployment to a full microservices deployment running all the components as distinct processes. At a high level, it is made up of features that implement write, read, and store functionality, as shown in the following diagram:
Figure 4.8 – High-level overview of Loki architecture
Both write and read functionality can be scaled independently to suit your particular needs and use cases.
Under the hood, Loki has the following core components:
- Distributor
- Ingester
- Query frontend
- Querier
- Backend services:
- Ruler
- Compactor
- Query scheduler
Let’s now look at the functionality and core components in more detail:
- Writes: Writes for the incoming log data hit the distributor, which is responsible for data sharding and partitioning, and sending them to the ingesters. The...