aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/namespaces/loki/loki_values.yml
blob: b9156e0c62ce9e74bc0143f7e1ac0a71e7cd4695 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# We are deploying a replicated single binary (not components)
deploymentMode: SingleBinary

loki:
  # Disable authentication, we are in-cluster
  auth_enabled: false

  # Set replication to 3 replicas
  commonConfig:
    replication_factor: 3

  # We have one schemaConfig, storing data in TSDB format in S3
  schemaConfig:
    configs:
      - from: 2024-04-01
        store: tsdb
        object_store: s3
        schema: v13
        index:
          prefix: index_
          period: 24h

  # Storage type is S3 (Minio)
  storage:
    type: s3

  compactor:
    retention_enabled: true
    delete_request_store: s3
    delete_request_cancel_period: 1h
    retention_delete_delay: 5m

  limits_config:
    retention_period: 30d
    # Enable volume querying endpoint (for Grafana Explore Logs)
    volume_enabled: true

singleBinary:
  # Set replicas to 3 again
  replicas: 3
  # Disable any persistence in Loki, all persistence is in S3
  persistence:
    enabled: false
  # Enable the pattern ingester (for Grafana Explore Logs)
  extraArgs:
    - "--pattern-ingester.enabled=true"

  # Add a tmpfs in /var/loki for temporary data storage
  extraVolumes:
    - name: var-loki-tmpfs
      emptyDir:
        medium: Memory
  extraVolumeMounts:
    - name: var-loki-tmpfs
      mountPath: /var/loki

  # Add labels to enable Prometheus scraping of Loki replicas
  podAnnotations:
    prometheus.io/scrape: "true"
    prometheus.io/port: "http-metrics"

# Reduce the memory on the memcached cluster (defaults to 8GB)
chunksCache:
  allocatedMemory: 1024

# Scale the scalable replicas to 0 since we deploy single binary
read:
  replicas: 0
write:
  replicas: 0
backend:
  replicas: 0

# Enable Minio for S3 storage
minio:
  enabled: true

# Enable Prometheus scraping of the Loki Canaries
lokiCanary:
  annotations:
    prometheus.io/scrape: "true"
    prometheus.io/port: "http-metrics"