Grafana Loki
Grafana Loki is a horizontally scalable log aggregation system that indexes labels instead of log contents, inspired by Prometheus.
- GitHub stars
- 29k
- Last commit
- today
- Latest release
- v3.7.8
- Licence
- AGPL-3.0
- Self-hosted
- Yes
- Hosted version
- Available

Loki is a log aggregation system from Grafana, described as Prometheus for logs. It is horizontally scalable, highly available and multi-tenant. Instead of indexing the contents of log lines, it indexes a set of labels for each log stream and stores the compressed log text, which the project says makes it simpler to operate and cheaper to run. It is written in Go and released under the AGPL-3.0 license.
Because Loki reuses the labels familiar from Prometheus, you can move between metrics and logs using the same label sets, and it has native support in Grafana. It works especially well for Kubernetes pod logs, since metadata such as pod labels is scraped and indexed automatically. A typical stack has three parts: Alloy as the collection agent, Loki for storage and queries, and Grafana for exploration. Alloy replaces Promtail, which is considered feature complete. Unlike Prometheus, Loki receives logs by push.
Key features
- Label-based indexing instead of full-text indexing
- Horizontally scalable, multi-tenant architecture
- Native Grafana integration for querying logs
- Automatic Kubernetes pod label indexing
- Grafana Alloy agent for log collection
- Single-binary deployment option
Pricing: Free and open source under the AGPL-3.0 license.





