exercises

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

loki-config.yaml (832B)


      1 # Loki configuration for Chapter 7 — Log aggregation via OTLP
      2 # Receives logs from OpenTelemetry SDK via HTTP (OTLP/HTTP) on port 3100
      3 
      4 auth_enabled: false
      5 
      6 server:
      7   http_listen_port: 3100
      8   grpc_listen_port: 9096
      9 
     10 common:
     11   instance_addr: 127.0.0.1
     12   path_prefix: /loki
     13   storage:
     14     filesystem:
     15       chunks_directory: /loki/chunks
     16       rules_directory: /loki/rules
     17   replication_factor: 1
     18   ring:
     19     kvstore:
     20       store: inmemory
     21 
     22 schema_config:
     23   configs:
     24     - from: "2024-01-01"
     25       store: tsdb
     26       object_store: filesystem
     27       schema: v13
     28       index:
     29         prefix: index_
     30         period: 24h
     31 
     32 limits_config:
     33   allow_structured_metadata: true
     34   volume_enabled: true
     35   otlp_config:
     36     resource_attributes:
     37       attributes_config:
     38         - action: index_label
     39           attributes:
     40             - service.name