Logging Storage

1. Loki Storage Backend

Loki stores logs in a backend system that is configured when Loki is deployed. It uses two main components for storage:

a. Index Store

b. Log Store (Chunks)

Common Storage Options for Loki

Loki supports multiple storage backends for scalability and reliability:

1. Local Disk

Example configuration:

storage_config:
  boltdb_shipper:
    active_index_directory: /tmp/loki/boltdb-shipper-active
  filesystem:
    directory: /tmp/loki/chunks

2. Object Storage (Cloud or On-Premise)

Example configuration for S3:

storage_config:
  aws:
    s3: s3://<bucket-name>
    region: us-west-2

3. Network Storage

4. DynamoDB (Indexing only)

2. Where Does Grafana Fit?

How to Check or Configure Loki Storage

kubectl get configmap loki-config -n <namespace> -o yaml

Revision #1
Created 15 November 2024 05:38:10 by Ahmad
Updated 15 November 2024 05:48:48 by Ahmad