File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ repositories {
2121dependencies {
2222 implementation ' org.springframework.boot:spring-boot-starter-data-mongodb-reactive'
2323 implementation ' org.springframework.boot:spring-boot-starter-webflux'
24+ implementation ' org.springframework.boot:spring-boot-starter-actuator'
25+ implementation ' io.micrometer:micrometer-registry-prometheus:latest.release'
2426 compileOnly ' org.projectlombok:lombok'
2527 annotationProcessor ' org.projectlombok:lombok'
2628}
Original file line number Diff line number Diff line change 11server.port =4000
2- spring.data.mongodb.uri =mongodb://giri:spring2020@db:27017/api?authSource =api&&authMechanism =SCRAM-SHA-1
2+ # For GCP:
3+ # spring.data.mongodb.uri=mongodb://giri:spring2020@db:27017/api?authSource=api
4+ # For docker-compose use the below:
5+ spring.data.mongodb.uri =mongodb://giri:spring2020@db:27017/api?authSource=test
6+ management.endpoints.web.exposure.include =health,metrics,prometheus
7+ management.endpoint.health.show-details =always
You can’t perform that action at this time.
0 commit comments