forked from callistaenterprise/blog-microservices-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
monitor-dashboard.yml
70 lines (54 loc) · 1.8 KB
/
monitor-dashboard.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
endpoints:
restart:
enabled: true
shutdown:
enabled: true
server:
port: 7979
logging:
level:
ROOT: WARN
# Get info regarding connection to the cofig server and retries if required
org.springframework.cloud.config.client.ConfigServicePropertySourceLocator: INFO
org.springframework.retry.support.RetryTemplate: DEBUG
# Set INFO to see the allocated port
org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer: INFO
org.springframework.boot.context.embedded.undertow.UndertowEmbeddedServletContainer: INFO
eureka:
client:
#Region where eureka is deployed -For AWS specify one of the AWS regions, for other datacenters specify a arbitrary string
#indicating the region.This is normally specified as a -D option (eg) -Deureka.region=us-east-1
region: default
#For eureka clients running in eureka server, it needs to connect to servers in other zones
preferSameZone: false
#Change this if you want to use a DNS based lookup for determining other eureka servers. For example
#of specifying the DNS entries, check the eureka-client-test.properties, eureka-client-prod.properties
#shouldUseDns: false
us-east-1:
availabilityZones: default
instance:
#Virtual host name by which the clients identifies this service
virtualHostName: ${spring.application.name}
---
# For deployment in Docker containers
spring:
profiles: docker
server:
port: 7979
eureka:
instance:
hostname: monitor
client:
serviceUrl:
defaultZone: http://discovery:8761/eureka/
---
# For deployment in Cloud Foundry
spring:
profiles: cloud
eureka:
instance:
hostname: ${vcap.application.uris[0]:localhost}
nonSecurePort: 80
client:
serviceUrl:
defaultZone: http://ml-public-ds-1.cfapps.io/eureka/