Skip to content

Commit b30edc5

Browse files
fix: references to elastic agent path in spring cloud
1 parent 87ad1e1 commit b30edc5

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
@@ -93,7 +93,7 @@ Before proceeding, you'll need your Elastic APM server connectivity information
9393
az spring-cloud app deploy \
9494
--name <your-app-name> \
9595
--artifact-path <unique-path-to-your-app-jar-on-custom-storage> \
96-
--jvm-options='-javaagent:<agent-location>' \
96+
--jvm-options='-javaagent:<elastic-agent-location>' \
9797
--env ELASTIC_APM_SERVICE_NAME=<your-app-name> \
9898
ELASTIC_APM_APPLICATION_PACKAGES='<your-app-package-name>' \
9999
ELASTIC_APM_SERVER_URL='<your-Elastic-APM-server-URL>' \
@@ -111,7 +111,7 @@ To configure the environment variables in a Terraform template, add the followin
111111
```terraform
112112
resource "azurerm_spring_cloud_java_deployment" "example" {
113113
...
114-
jvm_options = "-javaagent:<unique-path-to-your-app-jar-on-custom-storage>"
114+
jvm_options = "-javaagent:<elastic-agent-location>"
115115
...
116116
environment_variables = {
117117
"ELASTIC_APM_SERVICE_NAME"="<your-app-name>",
@@ -134,7 +134,7 @@ To configure the environment variables in an ARM template, add the following cod
134134
"ELASTIC_APM_SERVER_URL"="<your-Elastic-APM-server-URL>",
135135
"ELASTIC_APM_SECRET_TOKEN"="<your-Elastic-APM-secret-token>"
136136
},
137-
"jvmOptions": "-javaagent:<unique-path-to-your-app-jar-on-custom-storage>",
137+
"jvmOptions": "-javaagent:<elastic-agent-location>",
138138
...
139139
}
140140
```

0 commit comments

Comments
 (0)