-
Notifications
You must be signed in to change notification settings - Fork 20
/
manifest.yml
59 lines (59 loc) · 4.19 KB
/
manifest.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
applications:
- name: sock-payment
path: target/payment-api-0.0.1-SNAPSHOT.jar
memory: 256m
health-check-type: http
health-check-http-endpoint: /actuator/health/readiness
timeout: 180
services:
- user-api # cf create-user-provided-service user-api -p "{\"url\":\"https://$(cf curl /v2/apps/$(cf app sock-user --guid)/stats | jq -r '.["0"].stats.uris[0]')\"}"
- consul # cf create-user-provided-service consul -p "{\"host\": \"sock-consul.example.com\", \"scheme\": \"https\", \"port\": \"443\"}"
- prometheus-rsocket-proxy # cf create-user-provided-service prometheus-rsocket-proxy -p '{"host": "rsocket.example.com", "port": 7001}'
- zipkin # cf create-user-provided-service zipkin -p '{"url": "https://zipkin.example.com"}'
- wavefront # cf create-user-provided-service wavefront -p '{"api-token": "****"}'
env:
SERVER_PORT: 8080
JBP_CONFIG_SPRING_AUTO_RECONFIGURATION: '{enabled: false}'
SPRING_PROFILES_ACTIVE: consul
SERVER_TOMCAT_THREADS_MAX: 4
JAVA_OPTS: -XX:ReservedCodeCacheSize=32M -Xss512k -Duser.timezone=Asia/Tokyo
JBP_CONFIG_OPEN_JDK_JRE: '{memory_calculator: {stack_threads: 20}, jre: {version: 11.+}}'
BPL_JVM_THREAD_COUNT: 20
INFO_JAVA_VERSION: ${java.runtime.version}
INFO_JAVA_VENDOR: ${java.vm.vendor}
SPRING_ZIPKIN_ENABLED: true
SPRING_ZIPKIN_BASE_URL: ${vcap.services.zipkin.credentials.url}
SPRING_ZIPKIN_SERVICE_NAME: ${management.metrics.tags.space}:${spring.application.name}
SPRING_SLEUTH_WEB_ADDITIONALSKIPPATTERN: /actuator.*|/cloudfoundryapplication.*
SPRING_SECURITY_OAUTH2_RESOURCESERVER_JWT_ISSUERURI: ${vcap.services.user-api.credentials.url}/oauth/token
SPRING_CLOUD_CONSUL_HOST: ${vcap.services.consul.credentials.host}
SPRING_CLOUD_CONSUL_PORT: ${vcap.services.consul.credentials.port}
SPRING_CLOUD_CONSUL_SCHEME: ${vcap.services.consul.credentials.scheme}
SPRING_CLOUD_CONSUL_DISCOVERY_INSTANCEID: ${spring.application.name}-${vcap.application.instance_id}
SPRING_CLOUD_CONSUL_DISCOVERY_SCHEME: https
SPRING_CLOUD_CONSUL_DISCOVERY_HOSTNAME: ${vcap.application.uris[0]}
SPRING_CLOUD_CONSUL_DISCOVERY_PORT: 443
SPRING_CLOUD_CONSUL_DISCOVERY_CATALOGSERVICESWATCHDELAY: 15000
SPRING_APPLICATION_JSON: '{"spring.cloud.consul.discovery.health-check-headers[X-Cf-App-Instance]":"${vcap.application.application_id}:${vcap.application.instance_index}"}'
SPRING_CLOUD_CONSUL_DISCOVERY_INSTANCEZONE: ${vcap.application.cf_api}:${vcap.application.organization_name}:${vcap.application.space_name}
MANAGEMENT_METRICS_TAGS_ORGANIZATION: ${vcap.application.organization_name}
MANAGEMENT_METRICS_TAGS_SPACE: ${vcap.application.space_name}
MANAGEMENT_METRICS_TAGS_APPLICATION: ${vcap.application.application_name}
MANAGEMENT_METRICS_TAGS_INSTANCE_ID: ${management.metrics.tags.application}:${vcap.application.instance_index}
MANAGEMENT_METRICS_EXPORT_PROMETHEUS_RSOCKET_HOST: ${vcap.services.prometheus-rsocket-proxy.credentials.host}
MANAGEMENT_METRICS_EXPORT_PROMETHEUS_RSOCKET_PORT: ${vcap.services.prometheus-rsocket-proxy.credentials.port}
MANAGEMENT_METRICS_EXPORT_WAVEFRONT_ENABLED: false
MANAGEMENT_METRICS_EXPORT_WAVEFRONT_APITOKEN: ${vcap.services.wavefront.credentials.api-token}
MANAGEMENT_METRICS_EXPORT_WAVEFRONT_SOURCE: ${vcap.application.organization_name}:${vcap.application.space_name}:${vcap.application.application_name}:${vcap.application.instance_index}
WAVEFRONT_APPLICATION_CLUSTER: ${vcap.application.organization_name}
WAVEFRONT_APPLICATION_NAME: ${vcap.application.space_name}
WAVEFRONT_APPLICATION_SERVICE: ${vcap.application.application_name}
WAVEFRONT_APPLICATION_SHARD: ${vcap.application.instance_index}
LOGGING_EXCEPTIONCONVERSIONWORD: "\t%replace(%replace(%xEx){'\n','\r'}){'\t',' '}%nopex"
LOGGING_PATTERN_CONSOLE: "%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(${logging.pattern.level:%5p}) %clr(${PID: }){magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %replace(%m){'\n','\r'}${logging.exception-conversion-word:%wEx}%n"
LOGGING_LEVEL_IO_PIVOTAL_CFENV: DEBUG
metadata:
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "8080"
prometheus.io/path: "/actuator/prometheus"