stacks/monitoring/loki.yaml

# stacks/monitoring/loki.yaml
# Single-binary Loki with filesystem storage. Tuned for "one household,
# one node" rather than horizontal scaling. If ingestion_rate_mb becomes a
# problem, bump it before you even think about splitting components.

auth_enabled: false

server:
  http_listen_port: 3100
  grpc_listen_port: 9096
  log_level: info

common:
  path_prefix: /loki
  storage:
    filesystem:
      chunks_directory: /loki/chunks
      rules_directory: /loki/rules
  replication_factor: 1
  ring:
    kvstore:
      store: inmemory

ingester:
  chunk_idle_period: 30m
  chunk_block_size: 262144
  chunk_target_size: 1572864
  wal:
    enabled: true
    dir: /loki/wal

schema_config:
  configs:
    - from: 2024-01-01
      store: tsdb
      object_store: filesystem
      schema: v13
      index:
        prefix: index_
        period: 24h

compactor:
  working_directory: /loki/compactor
  retention_enabled: true
  delete_request_store: filesystem

limits_config:
  retention_period: 90d
  ingestion_rate_mb: 8
  ingestion_burst_size_mb: 16
  max_query_series: 5000

ruler:
  storage:
    type: local
    local:
      directory: /loki/rules-upload
  rule_path: /loki/rules-tmp
  enable_api: true