From 9324764121b9a194145646e3cb5950586f7be3ac Mon Sep 17 00:00:00 2001 From: Federico Busetti <729029+febus982@users.noreply.github.com> Date: Sun, 16 Feb 2025 20:06:22 +0000 Subject: [PATCH] Support grafana alloy credentials in an optional env file --- .dockerignore | 2 ++ .gitignore | 1 + docker-compose.yaml | 7 ++++++- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.dockerignore b/.dockerignore index 90149db4..1e27e325 100644 --- a/.dockerignore +++ b/.dockerignore @@ -314,3 +314,5 @@ cython_debug/ .git .github .gitignore + +*.env diff --git a/.gitignore b/.gitignore index 93afa7e4..57c7c400 100644 --- a/.gitignore +++ b/.gitignore @@ -283,3 +283,4 @@ dmypy.json # Cython debug symbols cython_debug/ +credentials.env diff --git a/docker-compose.yaml b/docker-compose.yaml index 69a18f1b..80b354e2 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -42,6 +42,12 @@ services: otel-collector: image: grafana/alloy:latest + # You can add the Grafana Cloud credentials in this file + # and push observability directly to the provider. + # Refer to the config.alloy file to see what credentials we need. + env_file: + - path: ./credentials.env + required: false depends_on: - jaeger ports: @@ -154,4 +160,3 @@ services: command: - "make" - "test" -