diff --git a/provider/notification-gc/docs/baremetal/README.md b/provider/notification-gc/docs/baremetal/README.md index 809766233946a9abd12b0efcd7a9edb21814f952..aa10718bf519f19cb47925f34da44ab32fc6ad3f 100644 --- a/provider/notification-gc/docs/baremetal/README.md +++ b/provider/notification-gc/docs/baremetal/README.md @@ -16,6 +16,12 @@ * [Keycloak configuration](#keycloak-configuration) ## Environment variables +Defined in default application property file but possible to override: + +| name | value | description | sensitive? | source | +|-----------------------------------|----------------------------------------------|-------------------------------------|------------|---------------| +| `MANAGEMENT_ENDPOINTS_WEB_BASE` | ex `/` | Web base for Actuator | no | - | +| `MANAGEMENT_SERVER_PORT` | ex `8081` | Port for Actuator | no | - | ### Common properties for all environments diff --git a/provider/notification-gc/docs/gc/README.md b/provider/notification-gc/docs/gc/README.md index eaa1e5ad418b8f84fc23f5ff53f545f3ec6c418f..bba9f31a50331fe782398f8565f097b545c6aad4 100644 --- a/provider/notification-gc/docs/gc/README.md +++ b/provider/notification-gc/docs/gc/README.md @@ -18,6 +18,13 @@ ## Environment variables +Defined in default application property file but possible to override: + +| name | value | description | sensitive? | source | +|-----------------------------------|----------------------------------------------|-------------------------------------|------------|---------------| +| `MANAGEMENT_ENDPOINTS_WEB_BASE` | ex `/` | Web base for Actuator | no | - | +| `MANAGEMENT_SERVER_PORT` | ex `8081` | Port for Actuator | no | - | + ### Common properties for all environments | name | value | description | sensitive? | source | @@ -29,13 +36,14 @@ **System Environment required to run service** -| name | value | description | sensitive? | source | -| --- | --- | --- | --- | --- | -| `SPRING_PROFILES_ACTIVE` | `gcp` | spring active profile | no | -| `REDIS_HOST` | ex `127.0.0.1` | Redis host | no | - | -| `REDIS_PORT` | ex `6379` | Redis port | no | - | -| `REDIS_PASSWORD` | ex `` | Redis password | yes | - | -| `REDIS_WITH_SSL` | ex `true` or `false` | Redis host ssl config | no | | +| name | value | description | sensitive? | source | +|-------------------------------------|----------------------|------------------------------------------------|------------|--------| +| `SPRING_PROFILES_ACTIVE` | `gcp` | spring active profile | no | | +| `REDIS_HOST` | ex `127.0.0.1` | Redis host | no | - | +| `REDIS_PORT` | ex `6379` | Redis port | no | - | +| `REDIS_PASSWORD` | ex `` | Redis password | yes | - | +| `REDIS_WITH_SSL` | ex `true` or `false` | Redis host ssl config | no | | +| `GOOGLE_APPLICATION_CREDENTIALS` | | Path to JSON keys file for GCP service account | yes | - | ### For Mappers to activate drivers diff --git a/provider/notification-gc/pom.xml b/provider/notification-gc/pom.xml index b896086ad1e6b6300c67bf9c0563434bbf3e1f26..ddc48aa01ece994143afa8539afe634c28a5219d 100644 --- a/provider/notification-gc/pom.xml +++ b/provider/notification-gc/pom.xml @@ -123,6 +123,10 @@ <artifactId>snakeyaml</artifactId> <version>${snakeyaml-version}</version> </dependency> + <dependency> + <groupId>org.springframework.boot</groupId> + <artifactId>spring-boot-starter-actuator</artifactId> + </dependency> </dependencies> <build> <plugins> diff --git a/provider/notification-gc/src/main/resources/application.properties b/provider/notification-gc/src/main/resources/application.properties index 4c65e44ecab9c8cdd40670a557ef02011000f0dd..ba923868b7617a78323001fc56030fcaafb74892 100644 --- a/provider/notification-gc/src/main/resources/application.properties +++ b/provider/notification-gc/src/main/resources/application.properties @@ -51,4 +51,10 @@ cache.codec=jackson propertyResolver.strategy=partition -spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration,org.springframework.boot.autoconfigure.data.redis.RedisRepositoriesAutoConfiguration \ No newline at end of file +spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration,org.springframework.boot.autoconfigure.data.redis.RedisRepositoriesAutoConfiguration + +#Health checks +management.server.port=${MANAGEMENT_SERVER_PORT:8081} +management.endpoints.web.base-path=${MANAGEMENT_ENDPOINTS_WEB_BASE:/} +management.endpoints.web.exposure.include=health +management.health.probes.enabled=true