Skip to content

Commit fead622

Browse files
committed
add prometheus for sc-b
1 parent f1fea74 commit fead622

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

mse-simple-demo/B/pom.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,14 @@
3535
<groupId>org.springframework.boot</groupId>
3636
<artifactId>spring-boot-starter-web</artifactId>
3737
</dependency>
38+
<dependency>
39+
<groupId>org.springframework.boot</groupId>
40+
<artifactId>spring-boot-starter-actuator</artifactId>
41+
</dependency>
3842
<dependency>
3943
<groupId>io.micrometer</groupId>
4044
<artifactId>micrometer-registry-prometheus</artifactId>
41-
<version>1.5.1</version>
45+
<version>1.3.0</version>
4246
</dependency>
4347

4448
<!-- Dubbo -->

mse-simple-demo/B/src/main/resources/application.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ dubbo.registry.check=false
2020

2121
spring.profiles.active=druid
2222

23-
management.endpoints.web.exposure.include=prometheus
24-
management.metrics.tags.application=spring-cloud-a
23+
management.endpoints.web.exposure.include=info,health,prometheus
24+
management.metrics.tags.application=spring-cloud-b

0 commit comments

Comments
 (0)