diff options
author | puthuparambil.aditya <aditya.puthuparambil@bell.ca> | 2021-08-03 11:19:40 +0100 |
---|---|---|
committer | puthuparambil.aditya <aditya.puthuparambil@bell.ca> | 2021-08-03 11:19:40 +0100 |
commit | 8169b24cac135fcaf731bb8014d0115362fda6d5 (patch) | |
tree | edd83e76d41c3e0f4d44686e433b317c45dfbe12 | |
parent | 704b80f4948499e0d6ff1c537825ed08fff6227f (diff) |
Add Spring Boot Actuator
Issue-ID: CPS-522
Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca>
Change-Id: I6bdb29dec63c409d18e84bebc51eeef5c34e1412
-rwxr-xr-x | pom.xml | 8 | ||||
-rwxr-xr-x | src/main/resources/application.yml | 16 |
2 files changed, 24 insertions, 0 deletions
@@ -91,6 +91,14 @@ <artifactId>spring-boot-starter-data-jpa</artifactId> </dependency> <dependency> + <groupId>org.springframework.boot</groupId> + <artifactId>spring-boot-starter-actuator</artifactId> + </dependency> + <dependency> + <groupId>io.micrometer</groupId> + <artifactId>micrometer-registry-prometheus</artifactId> + </dependency> + <dependency> <groupId>com.vladmihalcea</groupId> <artifactId>hibernate-types-52</artifactId> <version>2.10.0</version> diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index eed24dc..c79351a 100755 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -65,3 +65,19 @@ springdoc: urls: - name: query url: /swagger/openapi.yml + +# Actuator +management: + server: + port: 8081 + endpoints: + web: + base-path: /manage + exposure: + include: info,health,loggers,prometheus + endpoint: + health: + show-details: always + # kubernetes probes: liveness and readiness + probes: + enabled: true
\ No newline at end of file |