Skip to content

Commit 9212ae1

Browse files
committed
gerge branch 'heya/update-statsbeat' of https://github.com/heyams/azure-docs-pr into heya/update-statsbeat
2 parents e548dc1 + 1a515b9 commit 9212ae1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

articles/azure-monitor/app/java-standalone-config.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,18 +65,20 @@ Connection string is required. You can find your connection string in your Appli
6565
You can also set the connection string using the environment variable `APPLICATIONINSIGHTS_CONNECTION_STRING`
6666
(which will then take precedence over connection string specified in the json configuration).
6767

68-
you can also set the connectiong string by loading it from a file.
68+
You can also set the connection string by specifying a file to load the connection string from.
69+
70+
If you specify a relative path, it will be resolved relative to the directory where `applicationinsights-agent-3.2.6.jar` is located.
6971

7072
```json
7173
{
7274
"connectionString": "${file:connection-string-file.txt}"
7375
}
7476
```
7577

76-
`connection-string-file.txt` can be an absolute or relative path to the the agent jar location. It only contains the connection string:
78+
The file should contain only the connection string, for example:
7779

7880
```
79-
InstrumentationKey=...;IngestionEndpoint=...
81+
InstrumentationKey=...
8082
```
8183

8284
Not setting the connection string will disable the Java agent.

0 commit comments

Comments
 (0)