forked from mtusi2026/mtusi2026lab7
73 lines
1.5 KiB
YAML
73 lines
1.5 KiB
YAML
auth_enabled: false
|
|
|
|
server:
|
|
http_listen_address: 127.0.0.1
|
|
http_listen_port: 13100
|
|
grpc_listen_address: 127.0.0.1
|
|
grpc_listen_port: 9096
|
|
|
|
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
|
|
|
|
# Any optional gossip traffic remains inside this service namespace.
|
|
memberlist:
|
|
bind_addr: [127.0.0.1]
|
|
|
|
schema_config:
|
|
configs:
|
|
- from: 2024-01-01
|
|
store: tsdb
|
|
object_store: filesystem
|
|
schema: v13
|
|
index:
|
|
prefix: index_
|
|
period: 24h
|
|
|
|
storage_config:
|
|
filesystem:
|
|
directory: /loki/storage
|
|
tsdb_shipper:
|
|
active_index_directory: /loki/tsdb-index
|
|
cache_location: /loki/tsdb-cache
|
|
|
|
limits_config:
|
|
retention_period: 168h
|
|
allow_structured_metadata: true
|
|
max_line_size: 32KB
|
|
max_line_size_truncate: true
|
|
otlp_config:
|
|
resource_attributes:
|
|
ignore_defaults: true
|
|
attributes_config:
|
|
- action: index_label
|
|
attributes:
|
|
- service.name
|
|
- deployment.environment.name
|
|
- action: structured_metadata
|
|
attributes:
|
|
- service.instance.id
|
|
- service.version
|
|
log_attributes:
|
|
- action: structured_metadata
|
|
regex: .*
|
|
|
|
compactor:
|
|
working_directory: /loki/compactor
|
|
retention_enabled: true
|
|
delete_request_store: filesystem
|
|
|
|
ruler:
|
|
storage:
|
|
type: local
|
|
local:
|
|
directory: /loki/rules
|