springboot+prometheus+grafana 程序使用实例
作者:互联网
1、新建SpringBoot项目
2、引入pom依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-registry-prometheus</artifactId>
<version>1.6.2</version>
</dependency>
3、更改application.properties
server.port=8088
spring.application.name=spg
management.endpoints.web.exposure.include=*
标签:1.6,springboot,spring,boot,micrometer,grafana,application,prometheus 来源: https://www.cnblogs.com/xidianzxm/p/14273597.html