File tree Expand file tree Collapse file tree 7 files changed +31
-5
lines changed Expand file tree Collapse file tree 7 files changed +31
-5
lines changed Original file line number Diff line number Diff line change 3535 <groupId >org.springframework.boot</groupId >
3636 <artifactId >spring-boot-starter-web</artifactId >
3737 </dependency >
38+ <dependency >
39+ <groupId >io.micrometer</groupId >
40+ <artifactId >micrometer-registry-prometheus</artifactId >
41+ <version >1.5.1</version >
42+ </dependency >
3843
3944 <!-- Dubbo -->
4045 <dependency >
Original file line number Diff line number Diff line change @@ -19,3 +19,6 @@ dubbo.protocol.port=48080
1919dubbo.registry.check =false
2020
2121spring.profiles.active =druid
22+
23+ management.endpoints.web.exposure.include =prometheus
24+ management.metrics.tags.application =spring-cloud-a
Original file line number Diff line number Diff line change 2727 <artifactId >spring-cloud-starter-alibaba-nacos-discovery</artifactId >
2828 <version >2.1.1.RELEASE</version >
2929 </dependency >
30-
31-
3230 <dependency >
3331 <groupId >org.springframework.boot</groupId >
3432 <artifactId >spring-boot-starter-thymeleaf</artifactId >
3533 </dependency >
34+
35+ <dependency >
36+ <groupId >io.micrometer</groupId >
37+ <artifactId >micrometer-registry-prometheus</artifactId >
38+ <version >1.5.1</version >
39+ </dependency >
40+
3641 <dependency >
3742 <groupId >org.springframework.cloud</groupId >
3843 <artifactId >spring-cloud-starter-gateway</artifactId >
Original file line number Diff line number Diff line change @@ -32,4 +32,7 @@ spring.thymeleaf.mode = LEGACYHTML5
3232spring.thymeleaf.encoding =UTF-8
3333spring.thymeleaf.servlet.content-type =text/html
3434spring.thymeleaf.suffix =.html
35- spring.thymeleaf.cache =false
35+ spring.thymeleaf.cache =false
36+
37+ management.endpoints.web.exposure.include =prometheus
38+ management.metrics.tags.application =spring-cloud-a
Original file line number Diff line number Diff line change 3636 <groupId >org.springframework.boot</groupId >
3737 <artifactId >spring-boot-starter-web</artifactId >
3838 </dependency >
39+
40+ <dependency >
41+ <groupId >io.micrometer</groupId >
42+ <artifactId >micrometer-registry-prometheus</artifactId >
43+ <version >1.5.1</version >
44+ </dependency >
45+
3946 <dependency >
4047 <groupId >org.springframework.boot</groupId >
4148 <artifactId >spring-boot-starter-thymeleaf</artifactId >
Original file line number Diff line number Diff line change @@ -19,4 +19,7 @@ spring.thymeleaf.mode = LEGACYHTML5
1919spring.thymeleaf.encoding =UTF-8
2020spring.thymeleaf.servlet.content-type =text/html
2121spring.thymeleaf.suffix =.html
22- spring.thymeleaf.cache =false
22+ spring.thymeleaf.cache =false
23+
24+ management.endpoints.web.exposure.include =prometheus
25+ management.metrics.tags.application =spring-cloud-a
Original file line number Diff line number Diff line change 1111# 是否启动zuul、springcloud网关
1212gateway :
1313 zuul : false
14- springcloud : false
14+ springcloud : true
1515 mse :
1616 ingress : false
1717
You can’t perform that action at this time.
0 commit comments