blob: c28b5f1519226ef5127ff317c38552c675c86189 (
plain)
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
|
loki:
fullnameOverride: loki
persistence:
enabled: true
storageClassName: "standard"
accessModes:
- ReadWriteOnce
size: 10Gi
resources:
requests:
cpu: "100m"
memory: "256Mi"
limits:
cpu: "500m"
memory: "512Mi"
config:
schema_config:
configs:
- from: 2020-10-24
store: boltdb-shipper
object_store: filesystem
schema: v11
index:
prefix: index_
period: 168h
storage_config:
boltdb_shipper:
active_index_directory: /var/loki/index
cache_location: /var/loki/cache
cache_ttl: 24h
shared_store: filesystem
filesystem:
directory: /var/loki/chunks
bucketNames:
chunks: "loki-chunks" # Ensure this is set
ruler: "loki-ruler" # Ensure this is set
limits_config:
enforce_metric_name: false
reject_old_samples: true
reject_old_samples_max_age: 168h
auth_enabled: false # Add this to ensure auth is disabled if not needed
pattern_ingester:
enabled: false # Add this if you do not need the pattern ingester
tracing:
enabled: false # Disable tracing if not needed
promtail:
fullnameOverride: promtail
config:
clients:
- url: http://loki:3100/loki/api/v1/push
positions:
filename: /run/promtail/positions.yaml
scrape_configs:
- job_name: system
static_configs:
- targets:
- localhost
labels:
job: varlogs
__path__: /var/log/*log
resources:
requests:
cpu: "50m"
memory: "128Mi"
limits:
cpu: "200m"
memory: "256Mi"
persistence:
enabled: true
storageClassName: "standard"
accessModes:
- ReadWriteOnce
size: 5Gi
|