131 lines
3.2 KiB
Cheetah
131 lines
3.2 KiB
Cheetah
auth_enabled: false
|
|
|
|
ruler:
|
|
storage:
|
|
type: local
|
|
local:
|
|
directory: /loki/rules
|
|
rule_path: /loki/scratch
|
|
alertmanager_url: http://alertmanager:9093
|
|
enable_api: true
|
|
enable_alertmanager_v2: true
|
|
ring:
|
|
kvstore:
|
|
store: inmemory
|
|
|
|
server:
|
|
http_listen_port: 3100
|
|
log_level: warn
|
|
|
|
distributor:
|
|
ring:
|
|
kvstore:
|
|
store: memberlist
|
|
|
|
ingester:
|
|
lifecycler:
|
|
address: 127.0.0.1
|
|
ring:
|
|
kvstore:
|
|
store: inmemory
|
|
replication_factor: 1
|
|
final_sleep: 0s
|
|
chunk_idle_period: 1h # Any chunk not receiving new logs in this time will be flushed
|
|
max_chunk_age: 1h # All chunks will be flushed when they hit this age, default is 1h
|
|
chunk_target_size: 1048576 # Loki will attempt to build chunks up to 1.5MB, flushing first if chunk_idle_period or max_chunk_age is reached first
|
|
chunk_retain_period: 30s # Must be greater than index read cache TTL if using an index cache (Default index read cache TTL is 5m)
|
|
max_transfer_retries: 0 # Chunk transfers disabled
|
|
wal:
|
|
dir: "/tmp/wal"
|
|
|
|
memberlist:
|
|
abort_if_cluster_join_fails: false
|
|
bind_port: 7946
|
|
join_members:
|
|
- {{ env "STACK_NAME" }}_loki:7946
|
|
max_join_backoff: 1m
|
|
max_join_retries: 10
|
|
min_join_backoff: 1s
|
|
|
|
{{ if eq (env "LOKI_STORAGE_FILESYSTEM") "1" }}
|
|
schema_config:
|
|
configs:
|
|
- from: 2020-10-24
|
|
store: boltdb-shipper
|
|
object_store: filesystem
|
|
schema: v11
|
|
index:
|
|
prefix: index_
|
|
period: 24h
|
|
|
|
storage_config:
|
|
boltdb_shipper:
|
|
active_index_directory: /loki/boltdb-shipper-active
|
|
cache_location: /loki/boltdb-shipper-cache
|
|
cache_ttl: 24h # Can be increased for faster performance over longer query periods, uses more disk space
|
|
shared_store: filesystem
|
|
filesystem:
|
|
directory: /loki/chunks
|
|
{{ end }}
|
|
{{ if eq (env "LOKI_STORAGE_S3") "1" }}
|
|
schema_config:
|
|
configs:
|
|
- from: 2020-11-25
|
|
store: boltdb-shipper
|
|
object_store: aws
|
|
schema: v11
|
|
index:
|
|
prefix: index_
|
|
period: 24h
|
|
|
|
storage_config:
|
|
boltdb_shipper:
|
|
active_index_directory: /loki/index
|
|
cache_location: /loki/index_cache
|
|
resync_interval: 5s
|
|
shared_store: aws
|
|
|
|
aws:
|
|
endpoint: {{ env "LOKI_AWS_ENDPOINT" }}
|
|
region: {{ env "LOKI_AWS_REGION" }}
|
|
access_key_id: {{ env "LOKI_ACCESS_KEY_ID" }}
|
|
secret_access_key: {{ secret "loki_aws_secret_access_key" }}
|
|
bucketnames: {{ env "LOKI_BUCKET_NAMES" }}
|
|
insecure: false
|
|
sse_encryption: false
|
|
http_config:
|
|
idle_conn_timeout: 90s
|
|
response_header_timeout: 0s
|
|
insecure_skip_verify: false
|
|
s3forcepathstyle: true
|
|
{{ end }}
|
|
|
|
|
|
compactor:
|
|
working_directory: /loki/boltdb-shipper-compactor
|
|
shared_store: filesystem
|
|
compaction_interval: 10m
|
|
retention_enabled: true
|
|
retention_delete_delay: 2h
|
|
retention_delete_worker_count: 150
|
|
|
|
limits_config:
|
|
enforce_metric_name: false
|
|
reject_old_samples: true
|
|
reject_old_samples_max_age: 168h
|
|
retention_period: {{ env "LOKI_RETENTION_PERIOD" }}
|
|
split_queries_by_interval: 24h
|
|
max_query_parallelism: 100
|
|
|
|
query_scheduler:
|
|
max_outstanding_requests_per_tenant: 4096
|
|
|
|
frontend:
|
|
max_outstanding_per_tenant: 4096
|
|
|
|
chunk_store_config:
|
|
max_look_back_period: 0s
|
|
|
|
table_manager:
|
|
retention_deletes_enabled: false
|
|
retention_period: 0s |