86 lines
2.0 KiB
YAML
86 lines
2.0 KiB
YAML
|
|
auth_enabled: false
|
|
|
|
server:
|
|
http_listen_port: 3100
|
|
grpc_listen_port: 9096
|
|
log_level: info
|
|
|
|
common:
|
|
path_prefix: /var/lib/loki
|
|
storage:
|
|
filesystem:
|
|
chunks_directory: /var/lib/loki/chunks
|
|
rules_directory: /var/lib/loki/rules
|
|
replication_factor: 1
|
|
ring:
|
|
instance_addr: 127.0.0.1
|
|
kvstore:
|
|
store: inmemory
|
|
|
|
query_range:
|
|
results_cache:
|
|
cache:
|
|
embedded_cache:
|
|
enabled: true
|
|
max_size_mb: 100
|
|
|
|
schema_config:
|
|
configs:
|
|
- from: 2020-10-24
|
|
store: boltdb-shipper
|
|
object_store: filesystem
|
|
schema: v11
|
|
index:
|
|
prefix: index_
|
|
period: 24h
|
|
|
|
ruler:
|
|
alertmanager_url: http://localhost:9093
|
|
|
|
# Настройки хранения данных
|
|
limits_config:
|
|
retention_period: 744h # 31 день
|
|
enforce_metric_name: false
|
|
reject_old_samples: true
|
|
reject_old_samples_max_age: 168h
|
|
ingestion_rate_mb: 10
|
|
ingestion_burst_size_mb: 20
|
|
per_stream_rate_limit: 5MB
|
|
per_stream_rate_limit_burst: 15MB
|
|
max_cache_freshness_per_query: 10m
|
|
|
|
# Настройки компактора для очистки старых данных
|
|
compactor:
|
|
working_directory: /var/lib/loki/boltdb-shipper-compactor
|
|
shared_store: filesystem
|
|
retention_enabled: true
|
|
retention_delete_delay: 2h
|
|
retention_delete_worker_count: 150
|
|
|
|
# Настройки производительности
|
|
ingester:
|
|
chunk_idle_period: 1h
|
|
max_chunk_age: 1h
|
|
chunk_target_size: 1048576
|
|
chunk_retain_period: 30s
|
|
max_transfer_retries: 0
|
|
wal:
|
|
enabled: true
|
|
dir: /var/lib/loki/wal
|
|
flush_on_shutdown: true
|
|
|
|
# Настройки для работы в standalone режиме
|
|
storage_config:
|
|
boltdb_shipper:
|
|
active_index_directory: /var/lib/loki/boltdb-shipper-active
|
|
cache_location: /var/lib/loki/boltdb-shipper-cache
|
|
cache_ttl: 24h
|
|
shared_store: filesystem
|
|
filesystem:
|
|
directory: /var/lib/loki/chunks
|
|
|
|
# Аналитика и метрики
|
|
analytics:
|
|
reporting_enabled: false
|