forked from dynatrace-sockshop/carts
-
Notifications
You must be signed in to change notification settings - Fork 187
/
application.properties
28 lines (23 loc) · 1.4 KB
/
application.properties
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
server.port=${port:8080}
spring.application.name=carts
endpoints.health.enabled=false
### MongoDB on K8S
spring.data.mongodb.uri=mongodb://carts-db:27017/carts-db
#spring.data.mongodb.uri=mongodb://localhost:27017/carts-db
### MongoDB M20 on Atlas (for Workshop)
#spring.data.mongodb.uri=mongodb://carts-db-user:[email protected]:27017,carts-db-shard-00-01-dybbx.mongodb.net:27017,carts-db-shard-00-02-dybbx.mongodb.net:27017/carts-db?readPreference=secondary&ssl=true&replicaSet=carts-db-shard-0&authSource=admin
### MongoDB free-tier on Atlas (for Development)
#spring.data.mongodb.uri=mongodb://carts-db-user:[email protected]:27017,carts-db-shard-00-01-qrw2h.mongodb.net:27017,carts-db-shard-00-02-qrw2h.mongodb.net:27017/carts-db?ssl=true&replicaSet=carts-db-shard-0&authSource=admin&retryWrites=true
# Disable actuator metrics endpoints
endpoints.metrics.enabled=false
management.security.enabled=false
# delay in milliseconds to degrade performance of adding items to shopping cart
delayInMillis=0
promotionRate=0
version=v1
# prometheus endpoint enabled (false disabled, true enabled)
endpoints.prometheus.enabled=true
# overwrite prometheus path which usually defaults to /prometheus
# for spring based applications as /metrics is reserved for actuator
# metrics which are disabled in this project (see #14)
endpoints.prometheus.path=metrics