Skip to content

Commit 5d03193

Browse files
committed
Document system properties
1 parent aa0f018 commit 5d03193

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ If cloud role name is not set, the Application Insights resource's name will be
100100
You can also set the cloud role name using the environment variable `APPLICATIONINSIGHTS_ROLE_NAME`
101101
(which will then take precedence over cloud role name specified in the json configuration).
102102

103+
Or you can set the cloud role name using the Java system property `applicationinsights.role.name`
104+
(which will also take precedence over cloud role name specified in the json configuration).
105+
103106
If you have multiple applications deployed in the same JVM and want them to send telemetry to different cloud role
104107
names, see [Cloud role name overrides (preview)](#cloud-role-name-overrides-preview).
105108

@@ -121,6 +124,9 @@ If you want to set the cloud role instance to something different rather than th
121124
You can also set the cloud role instance using the environment variable `APPLICATIONINSIGHTS_ROLE_INSTANCE`
122125
(which will then take precedence over cloud role instance specified in the json configuration).
123126

127+
Or you can set the cloud role instance using the Java system property `applicationinsights.role.instance`
128+
(which will also take precedence over cloud role instance specified in the json configuration).
129+
124130
## Sampling
125131

126132
Sampling is helpful if you need to reduce cost.

0 commit comments

Comments
 (0)