- loki: recent releases require compactor.delete_request_store when retention is enabled (was crash-looping on start) - prometheus: scrape targets carried legacy dankclaw.local names with URL schemes (invalid); point at published LAN ports and the gitea quadlet's published port instead - grafana: GF_SERVER_ROOT_URL to the canonical HTTPS name - tests: 3 new seams for the deployed observability configs
50 lines
1.0 KiB
YAML
50 lines
1.0 KiB
YAML
# Loki configuration — single-binary mode for a small homelab.
|
|
# Deployed to /opt/loki/config/loki-config.yaml on Dankclaw.
|
|
|
|
auth_enabled: false
|
|
|
|
server:
|
|
http_listen_port: 3100
|
|
grpc_listen_port: 9096
|
|
|
|
common:
|
|
path_prefix: /loki
|
|
storage:
|
|
filesystem:
|
|
chunks_directory: /loki/chunks
|
|
rules_directory: /loki/rules
|
|
replication_factor: 1
|
|
ring:
|
|
instance_addr: 127.0.0.1
|
|
kvstore:
|
|
store: inmemory
|
|
|
|
schema_config:
|
|
configs:
|
|
- from: "2024-01-01"
|
|
store: tsdb
|
|
object_store: filesystem
|
|
schema: v13
|
|
index:
|
|
prefix: index_
|
|
period: 24h
|
|
|
|
limits_config:
|
|
retention_period: 720h # 30 days
|
|
allow_structured_metadata: true
|
|
volume_enabled: true
|
|
|
|
compactor:
|
|
working_directory: /loki/compactor
|
|
compaction_interval: 10m
|
|
retention_enabled: true
|
|
retention_delete_delay: 2m
|
|
retention_delete_worker_count: 1
|
|
# Required by recent Loki when retention is enabled.
|
|
delete_request_store: filesystem
|
|
|
|
ruler:
|
|
storage:
|
|
type: local
|
|
local:
|
|
directory: /loki/rules |