auth_enabled: false          # Whether authentication is enabled
server:
  http_listen_port: 3100     # HTTP service listening port
ingester:
  lifecycler:
    address: 10.0.0.80       # Monitoring server IP, i.e., local machine address
    ring:
      kvstore:
        store: inmemory      # Store shard metadata in memory. Suitable for single-node deployment. Options: inmemory, consul, etcd
      replication_factor: 1  # Number of data replicas. When set to 1, no replication is performed
    final_sleep: 0s          # Wait time before lifecycle end for graceful shutdown
  chunk_idle_period: 5m      # If a chunk receives no log data within 5 minutes, it is marked complete and ready to be flushed to storage
  chunk_retain_period: 30s   # After chunk completion, wait 30 seconds before flushing to storage
schema_config:
  configs:
  - from: 2024-04-01         # Start date from which the schema is effective
    store: boltdb            # Storage type for index data. Common values: boltdb, cassandra
    object_store: filesystem # Chunk storage type. Common values: filesystem, s3, gcs
    schema: v11              # Storage schema version used by Loki
    index:
      prefix: index_
      period: 168h           # Time range covered by each index table (7 days)
storage_config:
  boltdb:
    directory: /data/loki/index    # Directory for storing index files
  filesystem:
    directory: /data/loki/chunks   # Directory for storing chunks
limits_config:
  enforce_metric_name: false       # Whether to enforce that log streams include metric name labels
  reject_old_samples: true         # Whether to reject log samples outside the maximum allowed age  
  reject_old_samples_max_age: 168h # Defines the maximum age window for rejecting old log samples (7 days)
  # Global ingestion rate limits
  ingestion_rate_mb: 1024          # Global ingestion rate limit set to 1024 MB/s (1 GB/s)
  ingestion_burst_size_mb: 2048    # Global ingestion burst rate set to 2 GB/s

chunk_store_config:
# Maximum queryable historical retention period is 7 days; must be a multiple of schema_config.period, otherwise error
  max_look_back_period: 168h
table_manager:
  retention_deletes_enabled: true  # Enable automatic deletion of expired tables
  retention_period: 168h           # Table retention period (7 days)
