-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.storage-s3.yml
More file actions
54 lines (54 loc) · 2.08 KB
/
Copy pathcompose.storage-s3.yml
File metadata and controls
54 lines (54 loc) · 2.08 KB
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
# STUB — the storage scale-out path (not wired up; see ADR 0001).
#
# When local volumes stop fitting, Loki and Tempo move their object storage
# to any S3-compatible backend (Cloudflare R2, Backblaze B2, Hetzner, MinIO)
# without touching the collector, Prometheus, or any client project.
#
# This is deliberately a commented stub: it documents the concrete shape of
# the change so the README's scale-out claim is real, but it is not meant to
# be started until credentials and a bucket exist. To activate:
#
# 1. Create s3 variants of the configs, e.g. config/loki.s3.yaml replacing
# `common.storage.filesystem` with:
#
# common:
# storage:
# s3:
# endpoint: ${S3_ENDPOINT} # e.g. <account>.r2.cloudflarestorage.com
# bucketnames: cml-loki
# access_key_id: ${S3_ACCESS_KEY_ID}
# secret_access_key: ${S3_SECRET_ACCESS_KEY}
# s3forcepathstyle: true
#
# and config/tempo.s3.yaml replacing `storage.trace.backend: local` with:
#
# storage:
# trace:
# backend: s3
# s3:
# endpoint: ${S3_ENDPOINT}
# bucket: cml-tempo
# access_key: ${S3_ACCESS_KEY_ID}
# secret_key: ${S3_SECRET_ACCESS_KEY}
#
# 2. Uncomment the overlay below and run:
# docker compose -f compose.yml -f compose.storage-s3.yml up -d
#
# services:
# loki:
# volumes:
# - ./config/loki.s3.yaml:/etc/loki/loki.yaml:ro
# - loki_data:/loki
# environment:
# S3_ENDPOINT: ${S3_ENDPOINT:?set S3_ENDPOINT in .env}
# S3_ACCESS_KEY_ID: ${S3_ACCESS_KEY_ID:?set S3_ACCESS_KEY_ID in .env}
# S3_SECRET_ACCESS_KEY: ${S3_SECRET_ACCESS_KEY:?set S3_SECRET_ACCESS_KEY in .env}
#
# tempo:
# volumes:
# - ./config/tempo.s3.yaml:/etc/tempo/tempo.yaml:ro
# - tempo_data:/var/tempo
# environment:
# S3_ENDPOINT: ${S3_ENDPOINT:?set S3_ENDPOINT in .env}
# S3_ACCESS_KEY_ID: ${S3_ACCESS_KEY_ID:?set S3_ACCESS_KEY_ID in .env}
# S3_SECRET_ACCESS_KEY: ${S3_SECRET_ACCESS_KEY:?set S3_SECRET_ACCESS_KEY in .env}