-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Remove certificate setup and add script to download agent
- Loading branch information
David Pequegnot
committed
Jun 25, 2024
1 parent
fb4edd6
commit a47fb0f
Showing
8 changed files
with
25 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,6 +75,4 @@ logs/*.gz | |
### Custom user certificates ### | ||
docker/ca-trust/* | ||
|
||
|
||
LOG_FILE_IS_UNDEFINED* | ||
|
||
LOG_FILE_IS_UNDEFINED* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,9 +7,9 @@ vscode: | |
- "[email protected]" | ||
|
||
tasks: | ||
# Download the Grafana OpenTelemetry Java agent and saves it in the instrumentation directory | ||
- name: Download Grafana OpenTelemetry Java agent | ||
before: mkdir -p instrumentation | ||
command: curl -L https://github.com/grafana/grafana-opentelemetry-java/releases/download/v2.4.0-beta.1/grafana-opentelemetry-java.jar -o instrumentation/grafana-opentelemetry-java.jar | ||
command: sh scripts/download-agent.sh | ||
- name: Execute a first gradle task | ||
command: ./gradlew tasks | ||
- name: Build and start all the infrastructure | ||
command: docker compose up -d --build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env bash | ||
|
||
VERSION=v2.4.0-beta.1 | ||
|
||
# Define the URL of the Grafana OpenTelemetry agent | ||
AGENT_URL="https://github.com/grafana/grafana-opentelemetry-java/releases/download/${VERSION}/grafana-opentelemetry-java.jar" | ||
|
||
# Define the path to the instrumentation directory | ||
#INSTRUMENTATION_DIR="$(dirname "$(dirname "${BASH_SOURCE[0]}")")/instrumentation" | ||
|
||
INSTRUMENTATION_DIR="$(dirname "${BASH_SOURCE[0]}")/../instrumentation" | ||
|
||
# Create the instrumentation directory if it doesn't exist | ||
mkdir -p "$INSTRUMENTATION_DIR" | ||
|
||
# Download the Grafana OpenTelemetry agent and save it in the instrumentation directory | ||
curl -L "$AGENT_URL" -o "$INSTRUMENTATION_DIR/grafana-opentelemetry-java.jar" | ||
|
||
# Print a success message | ||
echo "Grafana OpenTelemetry agent downloaded successfully in $INSTRUMENTATION_DIR" |