82 lines
2.4 KiB
YAML
82 lines
2.4 KiB
YAML
|
|
# Loki single-binary configuration.
|
||
|
|
#
|
||
|
|
# Why single-binary and not the microservices chart: this is a 3-node house
|
||
|
|
# cluster whose entire log volume is well under 1 GiB/day. One process, one
|
||
|
|
# PVC, no object store, no ring to babysit.
|
||
|
|
#
|
||
|
|
# Retention: `retention_period: 192h` (8 days) — the deliverable is a *7-day
|
||
|
|
# floor*, and the compactor deletes relative to "now", so a 7-day-old line has
|
||
|
|
# a full day of margin before the compactor would touch it. 168h would put the
|
||
|
|
# 7-day boundary exactly on the deletion edge, which makes the acceptance query
|
||
|
|
# flaky. 192h is still a hard bound, not "keep everything".
|
||
|
|
#
|
||
|
|
# Storage is bounded three ways: (1) the 8Gi PVC, (2) compactor retention
|
||
|
|
# deleting whole chunks past 192h, (3) ingestion rate limits + a per-stream
|
||
|
|
# rate limit so one noisy pod cannot outrun deletion.
|
||
|
|
auth_enabled: false
|
||
|
|
|
||
|
|
server:
|
||
|
|
http_listen_address: 0.0.0.0
|
||
|
|
http_listen_port: 3100
|
||
|
|
grpc_listen_port: 9096
|
||
|
|
log_level: info
|
||
|
|
|
||
|
|
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: 2026-01-01
|
||
|
|
store: tsdb
|
||
|
|
object_store: filesystem
|
||
|
|
schema: v13
|
||
|
|
index:
|
||
|
|
prefix: index_
|
||
|
|
period: 24h
|
||
|
|
|
||
|
|
storage_config:
|
||
|
|
tsdb_shipper:
|
||
|
|
active_index_directory: /loki/tsdb-index
|
||
|
|
cache_location: /loki/tsdb-cache
|
||
|
|
|
||
|
|
limits_config:
|
||
|
|
# The floor. Compactor deletes anything older; nothing re-creates it.
|
||
|
|
retention_period: 192h
|
||
|
|
# Backfill is deliberate (pre-existing kubelet files + node journals carry
|
||
|
|
# real historical timestamps), so accept samples up to the retention horizon.
|
||
|
|
reject_old_samples: true
|
||
|
|
reject_old_samples_max_age: 192h
|
||
|
|
ingestion_rate_mb: 8
|
||
|
|
ingestion_burst_size_mb: 16
|
||
|
|
per_stream_rate_limit: 3MB
|
||
|
|
per_stream_rate_limit_burst: 6MB
|
||
|
|
max_streams_per_user: 10000
|
||
|
|
max_entries_limit_per_query: 5000
|
||
|
|
allow_structured_metadata: true
|
||
|
|
volume_enabled: true
|
||
|
|
# One day per sub-query keeps the single-binary querier inside its memory
|
||
|
|
# limit when someone scans a full week.
|
||
|
|
split_queries_by_interval: 24h
|
||
|
|
max_query_parallelism: 8
|
||
|
|
query_timeout: 2m
|
||
|
|
|
||
|
|
compactor:
|
||
|
|
working_directory: /loki/compactor
|
||
|
|
compaction_interval: 10m
|
||
|
|
retention_enabled: true
|
||
|
|
delete_request_store: filesystem
|
||
|
|
retention_delete_delay: 2h
|
||
|
|
retention_delete_worker_count: 150
|
||
|
|
|
||
|
|
|
||
|
|
analytics:
|
||
|
|
reporting_enabled: false
|