grafana-loki-minio/config/local-config.yaml
2025-06-13 17:07:45 +02:00

191 lines
3.6 KiB
YAML

#
#auth_enabled: false
#
#server:
# http_listen_port: 3100
#
#common:
# ring:
# instance_addr: 127.0.0.1
# kvstore:
# store: inmemory
# path_prefix: /loki
# compactor_address: http://loki:3100
# replication_factor: 1
#
#schema_config:
# configs:
# - from: 2020-08-01
# store: boltdb-shipper
# object_store: s3
# schema: v11
# index:
# prefix: index_
# period: 24h
# - from: 2023-07-11
# store: tsdb
# object_store: s3
# schema: v12
# index:
# prefix: index_
# period: 24h
# - from: 2024-01-10
# store: tsdb
# object_store: s3
# schema: v12
# index:
# prefix: index_
# period: 24h
# - from: 2024-03-29
# store: tsdb
# object_store: s3
# schema: v13
# index:
# prefix: index_
# period: 24h
#
#
#storage_config:
# boltdb_shipper:
# active_index_directory: /loki/index
# cache_location: /loki/index_cache
# resync_interval: 5s
# shared_store: s3
# aws:
# s3: http://minio:9000/loki
# bucketnames: loki
# endpoint: minio:9000
# access_key_id: admin
# secret_access_key: pa55w0rd
# insecure: true # Important si MinIO ne supporte pas HTTPS
# s3forcepathstyle: true
# FROM AI
auth_enabled: false
server:
http_listen_port: 3100
grpc_listen_port: 9095
log_level: info
common:
ring:
instance_addr: 127.0.0.1
kvstore:
store: inmemory
path_prefix: /loki
compactor_address: http://loki:3100
replication_factor: 1
memberlist:
join_members: ["loki"]
dead_node_reclaim_time: 30s
gossip_to_dead_nodes_time: 15s
left_ingesters_timeout: 30s
bind_addr: ['0.0.0.0']
bind_port: 7946
gossip_interval: 2s
ingester:
lifecycler:
ring:
kvstore:
store: memberlist
replication_factor: 1
chunk_idle_period: 5m
chunk_retain_period: 30s
#max_transfer_retries: 0
schema_config:
configs:
- from: 2022-01-01
store: boltdb-shipper
object_store: s3
schema: v13
index:
prefix: index_
period: 24h
- from: 2023-07-11
store: tsdb
object_store: s3
schema: v13
index:
prefix: index_
period: 24h
storage_config:
boltdb_shipper:
active_index_directory: /loki/index
cache_location: /loki/index_cache
#shared_store: s3
aws:
bucketnames: loki
endpoint: http://minio:9000
access_key_id: admin
secret_access_key: pa55w0rd
insecure: true
s3forcepathstyle: true
#compactor:
# working_directory: /loki/compactor
# #shared_store: s3
#limits_config:
# reject_old_samples: true
# reject_old_samples_max_age: 168h
limits_config:
max_cache_freshness_per_query: '10m'
reject_old_samples: true
reject_old_samples_max_age: 30m
ingestion_rate_mb: 10
ingestion_burst_size_mb: 20
# parallelize queries in 15min intervals
split_queries_by_interval: 15m
volume_enabled: true
#chunk_store_config:
# max_look_back_period: 0s
table_manager:
retention_deletes_enabled: true
retention_period: 336h # 14 jours
ruler:
storage:
type: local
local:
directory: /loki/rules
rule_path: /loki/rules-temp
alertmanager_url: http://localhost:9093
ring:
kvstore:
store: memberlist
enable_api: true
query_range:
# make queries more cache-able by aligning them with their step intervals
align_queries_with_step: true
max_retries: 5
parallelise_shardable_queries: true
cache_results: true
frontend:
log_queries_longer_than: 5s
compress_responses: true
max_outstanding_per_tenant: 2048
query_scheduler:
max_outstanding_requests_per_tenant: 1024
querier:
query_ingesters_within: 2h
compactor:
working_directory: /tmp/compactor