Skip to content

Commit d81cff9

Browse files
authored
Support grafana alloy credentials in an optional env file (#259)
1 parent d9c1ad3 commit d81cff9

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

.dockerignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,3 +314,5 @@ cython_debug/
314314
.git
315315
.github
316316
.gitignore
317+
318+
*.env

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,3 +283,4 @@ dmypy.json
283283
# Cython debug symbols
284284
cython_debug/
285285

286+
credentials.env

docker-compose.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ services:
4242

4343
otel-collector:
4444
image: grafana/alloy:latest
45+
# You can add the Grafana Cloud credentials in this file
46+
# and push observability directly to the provider.
47+
# Refer to the config.alloy file to see what credentials we need.
48+
env_file:
49+
- path: ./credentials.env
50+
required: false
4551
depends_on:
4652
- jaeger
4753
ports:
@@ -154,4 +160,3 @@ services:
154160
command:
155161
- "make"
156162
- "test"
157-

0 commit comments

Comments
 (0)