Skip to content

Commit 0a7fa80

Browse files
committed
configure micrometer-registry-prometheus
1 parent fead622 commit 0a7fa80

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

mse-simple-demo/SpringCloudGateway/pom.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,14 @@
3232
<artifactId>spring-boot-starter-thymeleaf</artifactId>
3333
</dependency>
3434

35+
<dependency>
36+
<groupId>org.springframework.boot</groupId>
37+
<artifactId>spring-boot-starter-actuator</artifactId>
38+
</dependency>
3539
<dependency>
3640
<groupId>io.micrometer</groupId>
3741
<artifactId>micrometer-registry-prometheus</artifactId>
38-
<version>1.5.1</version>
42+
<version>1.1.0</version>
3943
</dependency>
4044

4145
<dependency>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ spring.thymeleaf.suffix=.html
3535
spring.thymeleaf.cache=false
3636

3737
management.endpoints.web.exposure.include=prometheus
38-
management.metrics.tags.application=spring-cloud-a
38+
management.metrics.tags.application=spring-cloud-gateway

0 commit comments

Comments
 (0)