【发布时间】:2019-07-25 16:19:33
【问题描述】:
我在 Spring Boot 项目中设置 Azure 监控时遇到问题。
我每次开始都有错误:
instrumentationKey 必须设置为向 Azure Monitor 报告指标。
我已经使用以下属性设置了 application.properties:
azure.application-insights.instrumentation-key=VALID-UUID
spring.application.name=test
项目的依赖如下:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<version>2.1.3</version>
</dependency>
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-spring-boot-metrics-starter</artifactId>
<version>2.1.4</version>
</dependency>
【问题讨论】:
-
我创建了一个有问题的测试应用程序。这里github.com/RolfJordi/test-azure-monitoring。
标签: java azure azure-application-insights azure-monitoring