58 lines
1.1 KiB
Text
58 lines
1.1 KiB
Text
|
# https://github.com/DoTheEvo/selfhosted-apps-docker/tree/master/prometheus_grafana_loki#Loki
|
||
|
|
||
|
auth_enabled: false
|
||
|
|
||
|
server:
|
||
|
http_listen_port: 3100
|
||
|
|
||
|
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
|
||
|
|
||
|
# --- disable splitting to fix "too many outstanding requests"
|
||
|
|
||
|
query_range:
|
||
|
parallelise_shardable_queries: false
|
||
|
|
||
|
# --- compactor to have control over length of data retention
|
||
|
|
||
|
compactor:
|
||
|
working_directory: /loki/compactor
|
||
|
compaction_interval: 10m
|
||
|
retention_enabled: true
|
||
|
retention_delete_delay: 2h
|
||
|
retention_delete_worker_count: 150
|
||
|
|
||
|
limits_config:
|
||
|
retention_period: 240h
|
||
|
split_queries_by_interval: 0 # part of disable splitting fix
|
||
|
|
||
|
# -------------------------------------------------------
|
||
|
|
||
|
schema_config:
|
||
|
configs:
|
||
|
- from: 2020-10-24
|
||
|
store: tsdb
|
||
|
object_store: filesystem
|
||
|
schema: v13
|
||
|
index:
|
||
|
prefix: index_
|
||
|
period: 24h
|
||
|
|
||
|
# ruler:
|
||
|
# alertmanager_url: http://alertmanager:9093
|
||
|
|
||
|
analytics:
|
||
|
reporting_enabled: false
|
||
|
|
||
|
|
||
|
# TODO alertmanager
|