Skip to content

Commit 4bb97e7

Browse files
authored
Merge pull request #37503 from neuqlz/master
Update micrometer-java.md
2 parents 913707b + dcf610e commit 4bb97e7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/azure-monitor/app/micrometer-java.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Steps
5858
Add the following dependencies to your pom.xml or build.gradle file:
5959

6060
* Application Insights Spring-boot-starter 2.1.2 or above
61-
* Azure-spring-boot-metrics-starters 2.0.7 or above
61+
* Azure-spring-boot-metrics-starters 2.1.5 or above
6262
* [Application Insights Resource](../../azure-monitor/app/create-new-resource.md )
6363

6464
Steps:
@@ -69,12 +69,12 @@ Steps:
6969
<dependency>
7070
<groupId>com.microsoft.azure</groupId>
7171
<artifactId>azure-spring-boot-metrics-starter</artifactId>
72-
<version>2.0.7</version>
72+
<version>2.1.6</version>
7373
</dependency>
7474
```
7575
1. Update the application.properties or yml file with the Application Insights Instrumentation key using the following property:
7676

77-
`azure.application-insights.instrumentation-key=<your-instrumentation-key-here>`
77+
`management.metrics.export.azuremonitor.instrumentation-key=<your-instrumentation-key-here>`
7878
3. Build your application and run
7979
4. The above should get you running with pre-aggregated metrics auto collected to Azure Monitor. For details on how to fine-tune Application Insights Spring Boot starter refer to the [readme on GitHub](https://github.com/Microsoft/azure-spring-boot/releases/latest).
8080

0 commit comments

Comments
 (0)