Grafana Loki
How Grafana Loki works
- Pull in any logs with Promtail
- Store the logs in Loki
- Use LogQL to explore
- Alert on your logs
Loki Overview
- Agent - An agent or client, for example Grafana Alloy, or Promtail, which is distributed with Loki. The agent scrapes logs, turns the logs into streams by adding labels, and pushes the streams to Loki through an HTTP API.
- Loki - The main server, responsible for ingesting and storing logs and processing queries. It can be deployed in three different configurations, for more information see deployment modes.
- Grafana for querying and displaying log data. You can also query logs from the command line, using LogCLI or using the Loki API directly.