Skip to content

Commit 2027a2e

Browse files
committed
Add Micrometer to doc
1 parent 777591f commit 2027a2e

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

articles/azure-monitor/app/java-in-process-agent.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,16 +61,17 @@ In the `ApplicationInsights.json` file, you can additionally configure:
6161

6262
* Cloud role name
6363
* Cloud role instance
64+
* Application log capture
6465
* JMX metrics
66+
* Micrometer
67+
* Heartbeat
6568
* Sampling
66-
* Logging capture threshold
6769
* HTTP Proxy
68-
* Heartbeat interval
6970
* Self diagnostics
7071

7172
See details at [3.0 Public Preview: Configuration Options](https://github.com/microsoft/ApplicationInsights-Java/wiki/3.0-Preview:-Configuration-Options).
7273

73-
## Autocollected requests, dependencies, and logs
74+
## Autocollected requests, dependencies, logs, and metrics
7475

7576
### Requests
7677

@@ -103,6 +104,11 @@ See details at [3.0 Public Preview: Configuration Options](https://github.com/mi
103104
* Log4j
104105
* SLF4J/Logback
105106

107+
### Metrics
108+
109+
* Micrometer
110+
* JMX Metrics
111+
106112
## Sending custom telemetry from your application
107113

108114
Our goal in 3.0+ is to allow you to send your custom telemetry using standard APIs.
@@ -140,6 +146,15 @@ telemetryClient.trackEvent("WinGame");
140146
```
141147
### Metrics
142148

149+
You can send metric telemetry via [Micrometer](https://micrometer.io):
150+
151+
```java
152+
Counter counter = Metrics.counter("test_counter");
153+
counter.increment();
154+
```
155+
156+
Or you can also use Application Insights Java SDK 2.x:
157+
143158
```java
144159
telemetryClient.trackMetric("queueLength", 42.0);
145160
```

0 commit comments

Comments
 (0)