diff --git a/partition-core-plus/pom.xml b/partition-core-plus/pom.xml index 87835fde28d1114a1e7d5da7d1ddd7879764f97c..30dcf757eb7efcfbe2fd8f429df65cdaba4b2bd1 100644 --- a/partition-core-plus/pom.xml +++ b/partition-core-plus/pom.xml @@ -76,7 +76,13 @@ <version>5.7.0</version> <scope>test</scope> </dependency> + <dependency> + <groupId>org.springframework.boot</groupId> + <artifactId>spring-boot-starter-actuator</artifactId> + </dependency> </dependencies> + + <build> <plugins> <plugin> diff --git a/partition-core-plus/src/main/resources/application.properties b/partition-core-plus/src/main/resources/application.properties index f1a5114a3275289d2b8b8bed711ce1406fa51dd9..7f170d9b193e2ce0615431084c07f1313a73e117 100644 --- a/partition-core-plus/src/main/resources/application.properties +++ b/partition-core-plus/src/main/resources/application.properties @@ -43,3 +43,6 @@ osm.postgres.username=${PARTITION_POSTGRESQL_USERNAME:usr_partition_pg} osm.postgres.password=${PARTITION_POSTGRESQL_PASSWORD:partition_pg} #property used only for mandatory bean creation, not actually used in partition service dataPartitionId = ${DATA_PARTITION_ID:test-partition} + +management.endpoints.web.exposure.include=health +management.health.probes.enabled=true \ No newline at end of file diff --git a/provider/partition-gc/pom.xml b/provider/partition-gc/pom.xml index 7ce4d4cedc1b9a2d5dc46a753a8c5fef1467328b..6dcdb47eb2cdf879ed388d5f6e82f967c05bb114 100644 --- a/provider/partition-gc/pom.xml +++ b/provider/partition-gc/pom.xml @@ -101,6 +101,11 @@ <artifactId>osm</artifactId> <version>0.26.0</version> </dependency> + + <dependency> + <groupId>org.springframework.boot</groupId> + <artifactId>spring-boot-starter-actuator</artifactId> + </dependency> </dependencies> diff --git a/provider/partition-gc/src/main/resources/application.properties b/provider/partition-gc/src/main/resources/application.properties index aad7abf0532a5b765b3f7a76fe0497e1ef4fa0bc..ea0fc45c83a291c2821aaa43906ffbdc163a0ff0 100644 --- a/provider/partition-gc/src/main/resources/application.properties +++ b/provider/partition-gc/src/main/resources/application.properties @@ -37,3 +37,6 @@ partition-namespace=partition system.tenant.api=${SYSTEM_TENANT_API:true} system-partition-id=${SYSTEM_PARTITION_ID:system} system-partition-listable-and-resource-ready=${SYSTEM_PARTITION_LISTABLE_AND_RESOURCE_READY:false} + +management.endpoints.web.exposure.include=health +management.health.probes.enabled=true \ No newline at end of file