Files
mtusi2026lab7/infra/loki/loki.yaml

47 lines
1.5 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Loki 3.3.2, single binary: логи по OTLP (/otlp), хранение на volume /loki.
# lab7: HTTP (приём OTLP и запросы Grafana) — только mTLS сертификатом нашего CA.
# Внутренний gRPC single binary слушает только 127.0.0.1 (loopback контейнера).
# Allowlist identity у Loki нет — доступ дополнительно ограничен сетью tstore
# (в ней только otel-collector и grafana).
auth_enabled: false
server:
http_listen_port: 3100
grpc_listen_address: 127.0.0.1
grpc_listen_port: 9096
log_level: warn
http_tls_config:
cert_file: /tls/tls.crt
key_file: /tls/tls.key
client_auth_type: RequireAndVerifyClientCert
client_ca_file: /tls/ca.crt
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
limits_config:
allow_structured_metadata: true # trace_id, span_id, event и др. атрибуты лога
retention_period: 72h
volume_enabled: true
compactor:
working_directory: /loki/compactor
retention_enabled: true
delete_request_store: filesystem
analytics:
reporting_enabled: false