-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathloki.yml.tpl
77 lines (72 loc) · 1.81 KB
/
loki.yml.tpl
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
{{/*
Read the Loki Logs bucket secret. This will have scope throughout the template.
See the end of the template for the closing statement.
*/}}
{{ with secret "hashiatho.me-v2/loki_logs_bucket" }}
auth_enabled: false
server:
http_listen_port: {{ env "NOMAD_PORT_http" }}
grpc_listen_port: {{ env "NOMAD_PORT_grpc" }}
register_instrumentation: true
http_server_read_timeout: "40s"
http_server_write_timeout: "50s"
distributor:
ring:
kvstore:
store: consul
prefix: loki/collectors
ingester:
lifecycler:
address: {{ env "NOMAD_IP_http" }}
port: {{ env "NOMAD_PORT_http" }}
ring:
kvstore:
store: consul
prefix: loki/collectors
replication_factor: 1
final_sleep: 0s
chunk_idle_period: 5m
chunk_retain_period: 30s
flush_op_timeout: 20m
schema_config:
configs:
{{/*
store: boltdb-shipper
object_store: filesystem
*/}}
- from: 2022-01-01
store: boltdb-shipper
object_store: aws
schema: v11
index:
prefix: loki_
period: 24h
storage_config:
boltdb_shipper:
active_index_directory: local/index
cache_location: local/index_cache
filesystem:
directory: local/index
aws:
bucketnames: hah-logs
endpoint: {{ .Data.data.account_id }}.r2.cloudflarestorage.com
region: auto
access_key_id: {{ .Data.data.access_key_id }}
secret_access_key: {{ .Data.data.secret_access_key }}
insecure: false
sse_encryption: false
http_config:
idle_conn_timeout: 90s
insecure_skip_verify: false
s3forcepathstyle: true
dynamodb:
dynamodb_url: inmemory
limits_config:
enforce_metric_name: false
reject_old_samples: false
reject_old_samples_max_age: 168h
compactor:
working_directory: local/data/compactor
shared_store: filesystem
compaction_interval: 5m
{{ end }}