4.0.0com.dongmyspringboot0.0.1-SNAPSHOTmyspringbootDemo project for Spring Boot0.2.10org.springframework.bootspring-boot-starter-actuator2.1.1.RELEASEorg.springframework.bootspring-boot-starter-actuator2.1.1.RELEASEcom.alibaba.bootnacos-config-spring-boot-starter${nacos-config-spring-boot.version}com.alibaba.bootnacos-config-spring-boot-actuator${nacos-config-spring-boot.version}org.dromara.dynamictpdynamic-tp-spring-boot-starter-nacos1.2.0org.springframework.bootspring-boot-starter-web2.1.1.RELEASEcompilecom.fasterxml.jackson.corejackson-databindcom.fasterxml.jackson.corejackson-databind2.14.2org.apache.maven.pluginsmaven-compiler-plugin3.8.11.81.8UTF-8org.springframework.bootspring-boot-maven-plugin2.1.1.RELEASEcom.dong.myspringboot.MyspringbootApplicationtruerepackagerepackage
scrape_configs:
# The job name is added as a label `job=` to any timeseries scraped from this config.
- job_name: "prometheus"
# metrics_path defaults to '/metrics'
# scheme defaults to 'http'.
metrics_path: '/actuator/prometheus'
static_configs:
- targets: ["localhost:9089"] #此处的ip和端口为要监听的SpringBoot项目的ip和端口