Skip to content

Commit a2567a4

Browse files
authored
Merge pull request #4 from nijogeorgep/spring-upgrade-liveness
Spring Upgrade with Spring Actuator
2 parents 1ea5a94 + 2012973 commit a2567a4

File tree

3 files changed

+56
-3
lines changed

3 files changed

+56
-3
lines changed

pom.xml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>org.springframework.boot</groupId>
77
<artifactId>spring-boot-starter-parent</artifactId>
8-
<version>2.3.0.RELEASE</version>
8+
<version>2.7.0</version>
99
<relativePath/> <!-- lookup parent from repository -->
1010
</parent>
1111
<groupId>com.cloudwalkers</groupId>
@@ -16,7 +16,7 @@
1616

1717
<properties>
1818
<java.version>11</java.version>
19-
<kotlin.version>1.3.72</kotlin.version>
19+
<kotlin.version>1.6.0</kotlin.version>
2020
</properties>
2121

2222
<dependencies>
@@ -32,6 +32,10 @@
3232
<groupId>org.springframework.boot</groupId>
3333
<artifactId>spring-boot-starter-webflux</artifactId>
3434
</dependency>
35+
<dependency>
36+
<groupId>org.springframework.boot</groupId>
37+
<artifactId>spring-boot-starter-actuator</artifactId>
38+
</dependency>
3539
<dependency>
3640
<groupId>com.fasterxml.jackson.module</groupId>
3741
<artifactId>jackson-module-kotlin</artifactId>
@@ -76,6 +80,12 @@
7680
<artifactId>spring-boot-starter-test</artifactId>
7781
<scope>test</scope>
7882
</dependency>
83+
<dependency>
84+
<groupId>junit</groupId>
85+
<artifactId>junit</artifactId>
86+
<version>4.13.1</version>
87+
<scope>test</scope>
88+
</dependency>
7989
</dependencies>
8090

8191
<build>
@@ -85,6 +95,13 @@
8595
<plugin>
8696
<groupId>org.springframework.boot</groupId>
8797
<artifactId>spring-boot-maven-plugin</artifactId>
98+
<executions>
99+
<execution>
100+
<goals>
101+
<goal>build-info</goal>
102+
</goals>
103+
</execution>
104+
</executions>
88105
</plugin>
89106
<plugin>
90107
<groupId>org.jetbrains.kotlin</groupId>

src/main/resources/application.properties

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
spring:
2+
application:
3+
name: "spring-kotlin-app"
4+
server:
5+
servlet:
6+
context-path: /
7+
8+
management:
9+
endpoint:
10+
health:
11+
probes:
12+
enabled: true
13+
show-details: always
14+
metrics:
15+
enabled: true
16+
health:
17+
enabled: true
18+
show-components: "always"
19+
show-details: "always"
20+
metrics:
21+
enable:
22+
all: true
23+
tags:
24+
application: ${spring.application.name}
25+
environment: ${application.environment}
26+
distribution:
27+
slo:
28+
http.server.requests: 50ms
29+
percentiles-histogram:
30+
http.server.requests: true
31+
percentiles:
32+
http.server.requests: 0.99
33+
endpoints:
34+
enabled-by-default: true
35+
web:
36+
exposure:
37+
include: "*"

0 commit comments

Comments
 (0)