Skip to content
Snippets Groups Projects
Commit a3add8cf authored by dmytro anikieiev [EPAM / GCP]'s avatar dmytro anikieiev [EPAM / GCP]
Browse files

GONRG-9711: + spring boot actuator.

parent 97acf1c6
No related branches found
No related tags found
1 merge request!470GONRG-9711: + spring boot actuator.
Pipeline #266714 failed
......@@ -15,17 +15,19 @@ Must have:
Defined in default application property file but possible to override:
| name | value | description | sensitive? | source |
|-----------------------------|------------------------------------------|--------------------------------------------------------------------------------|------------|-----------------------------------------------------|
| `LOG_PREFIX` | `service` | Logging prefix | no | - |
| `SERVER_SERVLET_CONTEXPATH` | `/api/register/v1` | Register context path | no | - |
| `ENTITLEMENTS_API` | ex `http://entitlements/entitlements/v1` | Entitlements API endpoint | no | output of infrastructure deployment |
| `STORAGE_API` | ex `http://storage/api/storage/v2` | Storage API endpoint | no | output of infrastructure deployment |
| `SUBSCRIBER_SECRET` | ex`7a786376626e` | HMAC_SECRET from notification int tests in HEX , pattern(^[a-zA-Z0-9]{8,30}+$) | yes | output of infrastructure deployment |
| `ENVIRONMENT` | ex `dev` | Service environment config | no | - |
| `PARTITION_API` | ex `http://partition/api/partition/v1` | Partition service endpoint | no | output of infrastructure deployment |
| `SERVICE_IDENTITY` | ex `osdu-gcp-sa` | Service account identity "**osdu-gcp-sa**@iam.gserviceaccount.com" | yes | <https://console.cloud.google.com/apis/credentials> |
| `SECRET_API` | ex `http://secret/api/secret/v1` | Secret service API endpoint | no | output of infrastructure deployment |
| name | value | description | sensitive? | source |
|----------------------------------|------------------------------------------|--------------------------------------------------------------------------------|------------|-----------------------------------------------------|
| `LOG_PREFIX` | `service` | Logging prefix | no | - |
| `SERVER_SERVLET_CONTEXPATH` | `/api/register/v1` | Register context path | no | - |
| `ENTITLEMENTS_API` | ex `http://entitlements/entitlements/v1` | Entitlements API endpoint | no | output of infrastructure deployment |
| `STORAGE_API` | ex `http://storage/api/storage/v2` | Storage API endpoint | no | output of infrastructure deployment |
| `SUBSCRIBER_SECRET` | ex`7a786376626e` | HMAC_SECRET from notification int tests in HEX , pattern(^[a-zA-Z0-9]{8,30}+$) | yes | output of infrastructure deployment |
| `ENVIRONMENT` | ex `dev` | Service environment config | no | - |
| `PARTITION_API` | ex `http://partition/api/partition/v1` | Partition service endpoint | no | output of infrastructure deployment |
| `SERVICE_IDENTITY` | ex `osdu-gcp-sa` | Service account identity "**osdu-gcp-sa**@iam.gserviceaccount.com" | yes | <https://console.cloud.google.com/apis/credentials> |
| `SECRET_API` | ex `http://secret/api/secret/v1` | Secret service API endpoint | no | output of infrastructure deployment |
| `MANAGEMENT_ENDPOINTS_WEB_BASE` | ex `/` | Web base for Actuator | no | - |
| `MANAGEMENT_SERVER_PORT` | ex `8081` | Port for Actuator | no | - |
These variables define service behavior, and are used to switch between `Reference` or `Google Cloud` environments, their overriding
and usage in mixed mode was not tested. Usage of spring profiles is preferred.
......
......@@ -118,6 +118,10 @@
<version>3.12.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
</dependencies>
<build>
......
......@@ -42,3 +42,9 @@ SECRET_PATH=/api/secret/v1
SECRET_API=${SECRET_HOST}${SECRET_PATH}
propertyResolver.strategy=partition
#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
......@@ -17,16 +17,18 @@ Must have:
Defined in default application property file but possible to override:
| name | value | description | sensitive? | source |
|-----------------------------|------------------------------------------|--------------------------------------------------------------------------------|------------|-------------------------------------|
| `LOG_PREFIX` | `service` | Logging prefix | no | - |
| `SERVER_SERVLET_CONTEXPATH` | `/api/register/v1` | Register context path | no | - |
| `ENTITLEMENTS_API` | ex `http://entitlements/entitlements/v1` | Entitlements API endpoint | no | output of infrastructure deployment |
| `STORAGE_API` | ex `http://storage/api/storage/v2` | Storage API endpoint | no | output of infrastructure deployment |
| `SUBSCRIBER_SECRET` | ex`7a786376626e` | HMAC_SECRET from notification int tests in HEX , pattern(^[a-zA-Z0-9]{8,30}+$) | yes | output of infrastructure deployment |
| `ENVIRONMENT` | ex `dev` | Service environment config | no | - |
| `PARTITION_API` | ex `http://partition/api/partition/v1` | Partition service API endpoint | no | output of infrastructure deployment |
| `SECRET_API` | ex `http://secret/api/secret/v1` | Secret service API endpoint | no | output of infrastructure deployment |
| name | value | description | sensitive? | source |
|----------------------------------|------------------------------------------|--------------------------------------------------------------------------------|---------------|------------------------------------------|
| `LOG_PREFIX` | `service` | Logging prefix | no | - |
| `SERVER_SERVLET_CONTEXPATH` | `/api/register/v1` | Register context path | no | - |
| `ENTITLEMENTS_API` | ex `http://entitlements/entitlements/v1` | Entitlements API endpoint | no | output of infrastructure deployment |
| `STORAGE_API` | ex `http://storage/api/storage/v2` | Storage API endpoint | no | output of infrastructure deployment |
| `SUBSCRIBER_SECRET` | ex`7a786376626e` | HMAC_SECRET from notification int tests in HEX , pattern(^[a-zA-Z0-9]{8,30}+$) | yes | output of infrastructure deployment |
| `ENVIRONMENT` | ex `dev` | Service environment config | no | - |
| `PARTITION_API` | ex `http://partition/api/partition/v1` | Partition service API endpoint | no | output of infrastructure deployment |
| `SECRET_API` | ex `http://secret/api/secret/v1` | Secret service API endpoint | no | output of infrastructure deployment |
| `MANAGEMENT_ENDPOINTS_WEB_BASE` | ex `/` | Web base for Actuator | no | - |
| `MANAGEMENT_SERVER_PORT` | ex `8081` | Port for Actuator | no | - |
These variables define service behavior, and are used to switch between `Reference` or `Google Cloud` environments, their overriding
and usage in mixed mode was not tested. Usage of spring profiles is preferred.
......
......@@ -118,6 +118,10 @@
<artifactId>google-cloud-datastore</artifactId>
<version>2.13.5</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
</dependencies>
<build>
......
......@@ -42,3 +42,9 @@ SECRET_PATH=/api/secret/v1
SECRET_API=${SECRET_HOST}${SECRET_PATH}
propertyResolver.strategy=partition
#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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment