Skip to content

Commit 1739e00

Browse files
authored
Merge pull request #93254 from avinashupadhya99/fix-elastic-agent-ref
Fix references to elastic agent path in spring cloud docs
2 parents 8a40081 + b30edc5 commit 1739e00

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/spring-cloud/how-to-elastic-apm-java-agent-monitor.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Before proceeding, you'll need your Elastic APM server connectivity information
9696
az spring app deploy \
9797
--name <your-app-name> \
9898
--artifact-path <unique-path-to-your-app-jar-on-custom-storage> \
99-
--jvm-options='-javaagent:<agent-location>' \
99+
--jvm-options='-javaagent:<elastic-agent-location>' \
100100
--env ELASTIC_APM_SERVICE_NAME=<your-app-name> \
101101
ELASTIC_APM_APPLICATION_PACKAGES='<your-app-package-name>' \
102102
ELASTIC_APM_SERVER_URL='<your-Elastic-APM-server-URL>' \
@@ -114,7 +114,7 @@ To configure the environment variables in a Terraform template, add the followin
114114
```terraform
115115
resource "azurerm_spring_cloud_java_deployment" "example" {
116116
...
117-
jvm_options = "-javaagent:<unique-path-to-your-app-jar-on-custom-storage>"
117+
jvm_options = "-javaagent:<elastic-agent-location>"
118118
...
119119
environment_variables = {
120120
"ELASTIC_APM_SERVICE_NAME"="<your-app-name>",
@@ -137,7 +137,7 @@ To configure the environment variables in an ARM template, add the following cod
137137
"ELASTIC_APM_SERVER_URL"="<your-Elastic-APM-server-URL>",
138138
"ELASTIC_APM_SECRET_TOKEN"="<your-Elastic-APM-secret-token>"
139139
},
140-
"jvmOptions": "-javaagent:<unique-path-to-your-app-jar-on-custom-storage>",
140+
"jvmOptions": "-javaagent:<elastic-agent-location>",
141141
...
142142
}
143143
```

0 commit comments

Comments
 (0)