Skip to content

Commit aed399c

Browse files
committed
feat(lgtm): tempo multi tenancy
1 parent cce18a5 commit aed399c

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

labs/observability/lgtm/docker/monolithic/compose.yaml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ services:
8484
command:
8585
- "-target=all"
8686
- "-server.http-listen-port=3200"
87-
- "-storage.trace.backend=local" # tell tempo where to permanently put traces
88-
- "-storage.trace.wal.path=/tmp/tempo/wal" # tell tempo where to store the wal
89-
- "-storage.trace.local.path=/tmp/tempo/traces"
87+
- "-storage.trace.backend=local"
88+
- "-storage.trace.wal.path=/tmp/tempo/wal" # tell tempo where to store the wal
89+
- "-storage.trace.local.path=/tmp/tempo/traces" # tell tempo where to permanently put traces
9090
- "-config.file=/etc/tempo/config.yaml"
9191
configs:
9292
- source: tempo-config
@@ -137,6 +137,7 @@ configs:
137137
uid: loki
138138
access: proxy
139139
url: "http://loki:3100"
140+
orgId: 1
140141
version: 1
141142
editable: true
142143
isDefault: false
@@ -149,31 +150,33 @@ configs:
149150
type: prometheus
150151
uid: mimir
151152
access: proxy
152-
orgId: 1
153153
url: "http://mimir:3100/prometheus"
154+
orgId: 1
154155
version: 1
155156
editable: true
156157
isDefault: true
157158
basicAuth: false
158159
jsonData:
159160
httpHeaderName1: "X-Scope-OrgID"
160-
alertmanagerUid: "alertmanager"
161161
secureJsonData:
162162
httpHeaderValue1: "tenant1"
163163
- name: Tempo
164164
type: tempo
165165
uid: tempo
166166
access: proxy
167-
orgId: 1
168167
url: "http://tempo:3200"
168+
orgId: 1
169169
version: 1
170170
editable: true
171171
isDefault: false
172172
basicAuth: false
173173
apiVersion: 1
174174
jsonData:
175+
httpHeaderName1: "X-Scope-OrgID"
175176
serviceMap:
176177
datasourceUid: mimir
178+
secureJsonData:
179+
httpHeaderValue1: "tenant1"
177180
178181
tempo-config:
179182
content: |
@@ -183,3 +186,6 @@ configs:
183186
protocols:
184187
grpc:
185188
endpoint: "tempo:4317"
189+
query_frontend:
190+
multi_tenant_queries_enabled: true
191+
multitenancy_enabled: true

labs/observability/lgtm/docker/monolithic/config/alloy/config.alloy

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ otelcol.exporter.prometheus "default" {
8787
otelcol.exporter.otlp "tempo" {
8888
client {
8989
endpoint = coalesce(sys.env("TEMPO_HOST"), "localhost:4317")
90+
headers = {
91+
"X-Scope-OrgID" = "tenant1",
92+
}
9093
tls {
9194
insecure = true
9295
insecure_skip_verify = true

0 commit comments

Comments
 (0)