Skip to content
Snippets Groups Projects
Commit 64066d01 authored by Riabokon Stanislav(EPAM)[GCP]'s avatar Riabokon Stanislav(EPAM)[GCP]
Browse files

Merge branch 'feature/GONRG-9827_add-spring-boot-actuator' into 'master'

GONRG-9827: configure spring boot actuator

See merge request !559
parents 38e8b35e 4b920fe6
No related branches found
No related tags found
1 merge request!559GONRG-9827: configure spring boot actuator
Pipeline #267632 failed
......@@ -47,9 +47,20 @@ CREATE INDEX IF NOT EXISTS PartitionProperty_datagin ON partition."PartitionProp
* For this command to work, create a file with below data in the same folder from where you're executing the above command (variables are in sync with what was created in point number 2):
`PARTITION_POSTGRES_URL=jdbc:postgresql://172.17.0.1:5432/partition_db
PARTITION_POSTGRESQL_USERNAME=usr_partition_pg
PARTITION_POSTGRESQL_PASSWORD=partition_pg
dataPartitionId=test-partition`
Must have
| name | value | description | sensitive? | source |
|---------------------------------|-----------------------------------------------------|-------------|------------|--------|
| `PARTITION_POSTGRES_URL` | ex `jdbc:postgresql://172.17.0.1:5432/partition_db` | | | |
| `PARTITION_POSTGRESQL_USERNAME` | ex `usr_partition_pg` | | | |
| `PARTITION_POSTGRESQL_PASSWORD` | ex `partition_pg` | | | |
| `dataPartitionId` | ex `test-partition` | | | |
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 | - |
* Now, you can hit the Partition service from Postman to work on partition service locally.
......@@ -44,5 +44,8 @@ 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}
# 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
\ No newline at end of file
management.health.probes.enabled=true
......@@ -13,15 +13,17 @@ Must have:
Defined in default application property file but possible to override:
| name | value | description | sensitive? | source |
|-----------------------------|------------------------|------------------------------------|------------|--------|
| `LOG_LEVEL` | `****` | Logging level | no | - |
| `LOG_PREFIX` | `service` | Logging prefix | no | - |
| `SERVER_SERVLET_CONTEXPATH` | `/api/partition/v1` | Servlet context path | no | - |
| `PARTITION_PROPERTY_KIND` | ex `PartitionProperty` | Kind name to store the properties. | no | - |
| `PARTITION_NAMESPACE` | ex `partition` | Namespace for database. | no | - |
| `SYSTEM_PARTITION_ID` | ex `syspartition` | Name of system partition. | yes | - |
| `SYSTEM_TENANT_API` | ex `true` | Enables system API | no | - |
| name | value | description | sensitive? | source |
|---------------------------------|-------------------------|------------------------------------|------------|--------|
| `LOG_LEVEL` | `****` | Logging level | no | - |
| `LOG_PREFIX` | `service` | Logging prefix | no | - |
| `SERVER_SERVLET_CONTEXPATH` | `/api/partition/v1` | Servlet context path | no | - |
| `PARTITION_PROPERTY_KIND` | ex `PartitionProperty` | Kind name to store the properties. | no | - |
| `PARTITION_NAMESPACE` | ex `partition` | Namespace for database. | no | - |
| `SYSTEM_PARTITION_ID` | ex `syspartition` | Name of system partition. | yes | - |
| `SYSTEM_TENANT_API` | ex `true` | Enables system API | no | - |
| `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 `baremetal` or `gc` environments, their overriding and usage in mixed mode was not tested.
Usage of spring profiles is preferred.
......
......@@ -38,5 +38,8 @@ 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}
# 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
\ No newline at end of file
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