Files
errors.bitreport.pt/deploy/loki/loki.yaml
T
David Santos 113eee0b97 feat(obs): add Loki ruler alert rules and MONITORING.md Loki section (BIT-19957)
- deploy/loki/rules/fake/errors_hub_alerts.yaml: four LogQL-based Loki ruler
  alert rules (error rate per service, fatal detection, ingest-api sustained
  errors, collector-worker stall detection)
- deploy/loki/loki.yaml: add explicit ruler.storage (local), rule_path, and
  enable_api/enable_alertmanager_v2 so Loki loads rules from /loki/rules
- docker-compose.yml: mount deploy/loki/rules → /loki/rules:ro in the loki
  service (observability profile)
- docs/MONITORING.md: add Loki section with label table, alert rule summary,
  config file index, and LXC deployment note

Paperclip-Issue: BIT-19957
Paperclip-Agent: cto
2026-05-14 09:31:31 +00:00

64 lines
1.2 KiB
YAML

# Loki configuration for errors.bitreport.pt log aggregation.
# Docs: docs/OBSERVABILITY_LOKI.md
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
query_range:
results_cache:
cache:
embedded_cache:
enabled: true
max_size_mb: 100
schema_config:
configs:
- from: 2024-01-01
store: tsdb
object_store: filesystem
schema: v13
index:
prefix: index_
period: 24h
ruler:
alertmanager_url: http://localhost:9093
storage:
type: local
local:
directory: /loki/rules
rule_path: /tmp/loki-ruler-tmp
enable_api: true
enable_alertmanager_v2: true
limits_config:
retention_period: 30d
ingestion_rate_mb: 4
ingestion_burst_size_mb: 8
max_cache_freshness_per_query: 10m
reject_old_samples: true
reject_old_samples_max_age: 168h
compactor:
working_directory: /loki/compactor
retention_enabled: true
retention_delete_delay: 2h
retention_delete_worker_count: 150
delete_request_store: filesystem