You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-monitor/app/java-standalone-arguments.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -85,7 +85,7 @@ Add `-javaagent:path/to/applicationinsights-agent-3.0.0-PREVIEW.jar` to the exis
85
85
86
86
Add `-javaagent:path/to/applicationinsights-agent-3.0.0-PREVIEW.jar` to the existing `jvm-options` in `JBOSS_HOME/domain/configuration/host.xml`:
87
87
88
-
```html
88
+
```xml
89
89
...
90
90
<jvms>
91
91
<jvmname="default">
@@ -104,7 +104,7 @@ Add `-javaagent:path/to/applicationinsights-agent-3.0.0-PREVIEW.jar` to the exis
104
104
105
105
If you are running multiple managed servers on a single host, you will need to add `applicationinsights.agent.id` to the `system-properties` for each `server`:
Copy file name to clipboardExpand all lines: articles/azure-monitor/app/java-standalone-config.md
+2-13Lines changed: 2 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,8 +55,7 @@ If you want to set the cloud role name:
55
55
```json
56
56
{
57
57
"instrumentationSettings": {
58
-
"preview": {
59
-
//Set the cloud role name here:
58
+
"preview": {
60
59
"roleName": "my cloud role name"
61
60
}
62
61
}
@@ -77,7 +76,6 @@ If you want to set the cloud role instance to something different rather than th
77
76
{
78
77
"instrumentationSettings": {
79
78
"preview": {
80
-
//Set the cloud instance here:
81
79
"roleInstance": "my cloud role instance"
82
80
}
83
81
}
@@ -99,7 +97,6 @@ If you want to change this threshold:
99
97
"instrumentationSettings": {
100
98
"preview": {
101
99
"instrumentation": {
102
-
//Set logging threshold here
103
100
"logging": {
104
101
"threshold": "ERROR"
105
102
}
@@ -132,7 +129,6 @@ If you have some JMX metrics that you are interested in capturing:
132
129
{
133
130
"instrumentationSettings": {
134
131
"preview": {
135
-
//Configure the JMX metrics here:
136
132
"jmxMetrics": [
137
133
{
138
134
"objectName": "java.lang:type=ClassLoading",
@@ -161,7 +157,6 @@ If you want to disable this feature:
161
157
"instrumentationSettings": {
162
158
"preview": {
163
159
"instrumentation": {
164
-
//To disable Micrometer:
165
160
"micrometer": {
166
161
"enabled": false
167
162
}
@@ -179,7 +174,6 @@ By default, Application Insights Java 3.0 Preview sends a heartbeat metric once
179
174
{
180
175
"instrumentationSettings": {
181
176
"preview": {
182
-
//Adjust the heartbeat frequency here:
183
177
"heartbeat": {
184
178
"intervalSeconds": 60
185
179
}
@@ -198,14 +192,12 @@ Sampling is performed as a function on the operation ID (also known as trace ID)
198
192
199
193
For example, if you set sampling to 10%, you will only see 10% of your transactions, but each one of those 10% will have full end-to-end transaction details.
200
194
201
-
To enable sampling:
195
+
Here is an example how to set the sampling to **10% of all transactions** - please make sure you set the sampling rate that is correct for your use case:
202
196
203
197
```json
204
198
{
205
199
"instrumentationSettings": {
206
200
"preview": {
207
-
//Set the sampling rate here.
208
-
//below is an example how to set the sampling to 10% of all trnsactions
209
201
"sampling": {
210
202
"fixedRate": {
211
203
"percentage": 10
@@ -224,7 +216,6 @@ If your application is behind a firewall and cannot connect directly to Applicat
224
216
{
225
217
"instrumentationSettings": {
226
218
"preview": {
227
-
//Set the HTTP proxy:
228
219
"httpProxy": {
229
220
"host": "myproxy",
230
221
"port": 8080
@@ -246,7 +237,6 @@ By default, it logs to console with level `warn`, corresponding to this configur
246
237
{
247
238
"instrumentationSettings": {
248
239
"preview": {
249
-
//SelfDiagnostic configuration
250
240
"selfDiagnostics": {
251
241
"destination": "console",
252
242
"level": "WARN"
@@ -264,7 +254,6 @@ If you want to log to a file instead of logging to console:
264
254
{
265
255
"instrumentationSettings": {
266
256
"preview": {
267
-
//To log the output from self diagnostics to a file
0 commit comments