【发布时间】:2018-11-06 04:27:56
【问题描述】:
在我的 springboot 应用程序中,我在 application.properties 中添加了以下内容:
management.metrics.export.newrelic.api-key=MY_INSIGHT_KEY
management.metrics.export.newrelic.account-id=MY_NEWRELIC_ACCOUNT_ID
在 pom 文件中,我将 micrometer-newrelic 依赖项插入为:
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-registry-new-relic</artifactId>
<version>${micrometer.version}</version>
</dependency>
但我在洞察力site 上看不到任何指标。
我在配置中缺少什么?
编辑:
This link 文档在 Spring Boot 2 中为新的 Relic 配置千分尺。
它要求实现 NewRelicConfig 接口并用它创建 NewRelicMeterRegistry。
但是我需要把这段代码放在 springboot 2 应用程序的什么地方。
【问题讨论】:
标签: spring-boot newrelic micrometer