-
Notifications
You must be signed in to change notification settings - Fork 436
/
application.yml
91 lines (82 loc) · 2.2 KB
/
application.yml
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# COMMON APPLICATION PROPERTIES
server:
# start services on random port by default
port: 0
# The stop processing uses a timeout which provides a grace period during which existing requests will be allowed to complete but no new requests will be permitted
shutdown: graceful
# embedded database init, supports mysql too trough the 'mysql' spring profile
spring:
sql:
init:
schema-locations: classpath*:db/hsqldb/schema.sql
data-locations: classpath*:db/hsqldb/data.sql
sleuth:
sampler:
probability: 1.0
cloud:
config:
# Allow the microservices to override the remote properties with their own System properties or config file
allow-override: true
# Override configuration with any local property source
override-none: true
jpa:
open-in-view: false
hibernate:
ddl-auto: none
# Spring Boot 1.5 makes actuator secure by default
management.security.enabled: false
# Enable all Actuators and not only the two available by default /health and /info starting Spring Boot 2.0
management.endpoints.web.exposure.include: "*"
# Temporary hack required by the Spring Boot 2 / Spring Cloud Finchley branch
# Waiting issue https://github.com/spring-projects/spring-boot/issues/13042
spring.cloud.refresh.refreshable: false
# Logging
logging.level.org.springframework: INFO
# Metrics
management:
endpoint:
metrics:
enabled: true
prometheus:
enabled: true
endpoints:
web:
exposure:
include: '*'
metrics:
export:
prometheus:
enabled: true
tracing:
sampling:
probability: 1
# Chaos Engineering
---
spring:
config:
activate:
on-profile: chaos-monkey
management.endpoint.chaosmonkey.enabled: true
chaos:
monkey:
enabled: true
watcher:
component: false
controller: false
repository: false
rest-controller: false
service: false
---
spring:
config:
activate:
on-profile: mysql
datasource:
url: jdbc:mysql://localhost:3306/petclinic?useSSL=false
username: root
password: petclinic
sql:
init:
schema-locations: classpath*:db/mysql/schema.sql
data-locations: classpath*:db/mysql/data.sql
init: ALWAYS