Skip to content

Loki

February 22, 2026

What it is

Loki is a log aggregation system from Grafana Labs. It indexes labels (not full text) for efficiency; query with LogQL. Designed to pair with Prometheus and Grafana.

Usage

Ship logs from apps and infra; query in Grafana; correlate with metrics; lower cost than full-text indexing.

Pros and cons

ProsCons
Label-based; cost-effectiveLess flexible full-text search than Elasticsearch
LogQL and Grafana integration
Scales with same patterns as Prometheus
Good for K8s and containers

Alternatives

Elasticsearch/OpenSearch, Vector + storage. Why Loki: Prometheus-style labels and Grafana-native; good for metrics + logs in one place.

Links