57 lines
1.5 KiB
YAML
57 lines
1.5 KiB
YAML
# Loki configuration - single binary mode, suitable for homelab scale
|
|
# Docs: https://grafana.com/docs/loki/latest/configuration/
|
|
|
|
auth_enabled: false
|
|
|
|
server:
|
|
http_listen_port: 3100
|
|
grpc_listen_port: 9096
|
|
log_level: warn
|
|
|
|
common:
|
|
instance_addr: 127.0.0.1
|
|
path_prefix: /loki
|
|
storage:
|
|
filesystem:
|
|
chunks_directory: /loki/chunks
|
|
rules_directory: /loki/rules
|
|
replication_factor: 1
|
|
ring:
|
|
kvstore:
|
|
store: inmemory
|
|
|
|
schema_config:
|
|
configs:
|
|
- from: 2024-01-01
|
|
store: tsdb
|
|
object_store: filesystem
|
|
schema: v13
|
|
index:
|
|
prefix: index_
|
|
period: 24h
|
|
|
|
# ── Retention ─────────────────────────────────────────────────────────────────
|
|
# Adjust these to suit your disk space. 90 days is a good starting point for
|
|
# homelab troubleshooting — long enough to catch recurring issues.
|
|
limits_config:
|
|
retention_period: 90d
|
|
ingestion_rate_mb: 4
|
|
ingestion_burst_size_mb: 8
|
|
|
|
compactor:
|
|
working_directory: /loki/compactor
|
|
retention_enabled: true
|
|
retention_delete_delay: 2h
|
|
delete_request_store: filesystem
|
|
|
|
# ── Query performance ─────────────────────────────────────────────────────────
|
|
query_range:
|
|
results_cache:
|
|
cache:
|
|
embedded_cache:
|
|
enabled: true
|
|
max_size_mb: 100
|
|
|
|
ruler:
|
|
alertmanager_url: http://localhost:9093
|