Loki#
| Chart Name | Version | App version |
|---|---|---|
| loki | 6.53.0 | 3.6.5 |
Loki is a horizontally scalable, highly available, multi-tenant log aggregation system inspired by Prometheus. Designed for cloud-native environments, Loki provides a cost-efficient and operationally simple approach to centralized logging.
Unlike traditional logging systems, Loki does not index the full contents of logs. Instead, it indexes only metadata labels associated with each log stream. This architecture significantly reduces storage and infrastructure costs while maintaining powerful query capabilities through LogQL.
Originally developed by Grafana Labs and announced at KubeCon Seattle in 2018, Loki is released under the AGPLv3 license. It integrates natively with Grafana, enabling seamless visualization, exploration, and alerting based on logs.
Key Features#
- Horizontally scalable and highly available architecture
- Multi-tenant log aggregation
- Cost-efficient storage model (label-based indexing)
- Native Kubernetes integration
- LogQL query language for advanced filtering and metrics generation
- Tight integration with Grafana for dashboards and alerts
Why Deploy Loki with k0rdent#
When deployed via k0rdent, Loki can be consistently installed and managed across multiple Kubernetes clusters, enabling centralized observability in multi-cluster environments. It complements Prometheus-based metrics monitoring by providing unified log visibility at scale.
Prerequisites#
Deploy k0rdent v1.0.0: QuickStart
Install template to k0rdent#
helm upgrade --install loki oci://ghcr.io/k0rdent/catalog/charts/kgst --set "chart=loki:6.53.0" -n kcm-system
Verify service template#
Deploy service template#
apiVersion: k0rdent.mirantis.com/v1beta1
kind: MultiClusterService
metadata:
name: loki
spec:
clusterSelector:
matchLabels:
group: demo
serviceSpec:
services:
- template: loki-6-53-0
name: loki
namespace: loki
values: |
loki:
deploymentMode: SingleBinary
loki:
auth_enabled: false
commonConfig:
replication_factor: 1
storage:
type: filesystem
schemaConfig:
configs:
- from: 2024-01-01
store: tsdb
object_store: filesystem
schema: v13
index:
prefix: index_
period: 24h
storage_config:
filesystem:
directory: /var/loki/chunks
compactor:
working_directory: /var/loki/compactor
limits_config:
allow_structured_metadata: true
volume_enabled: true
singleBinary:
replicas: 1
read:
replicas: 0
write:
replicas: 0
backend:
replicas: 0
persistence:
enabled: true
size: 3Gi