使用 wavefront 监控你的应用

Scroll Down
<properties>
    <!--   build config    -->
    <java.version>1.8</java.version>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>


    <wavefront.version>2.0.0-SNAPSHOT</wavefront.version>
</properties>

<dependencies>
   <dependency>
     <groupId>com.wavefront</groupId>
     <artifactId>wavefront-spring-boot-starter</artifactId>
   </dependency>
</dependencies>

<dependencyManagement>
  <dependencies>
    <dependency>
      <groupId>com.wavefront</groupId>
      <artifactId>wavefront-spring-boot-bom</artifactId>
      <version>${wavefront.version}</version>
      <type>pom</type>
      <scope>import</scope>
    </dependency>
  </dependencies>
</dependencyManagement>
    

添加依赖后直接启动即可
留意console, 会出现
Your existing Wavefront account information has been restored from disk. To share this account, make sure the following is added to your configuration: management.metrics.export.wavefront.api-token=f6411b24-4a67-4a64-b479-7xxxxxx management.metrics.export.wavefront.uri=https://wavefront.surf Connect to your Wavefront dashboard using this one-time use link: https://wavefront.surf/us/xxxx
点击一次性链接即可查看仪表盘信息信息