-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathchapter8.example.yml
79 lines (67 loc) · 1.96 KB
/
chapter8.example.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
###############################################################################
# This config file is the config file used in Chapter 8 of Practical
# OpenTelemetry. It is a copy of the default `example.yml` used within the
# official dropwizard-example@2.1.1 (https://github.com/dropwizard/dropwizard)
# replacing the `logging` block for a block demonstrating OpenTelemetry
# instrumentation.
###############################################################################
template: Hello, %s!
defaultName: ${DW_DEFAULT_NAME:-Stranger}
# Database settings.
database:
# the name of your JDBC driver
driverClass: org.h2.Driver
# the username
user: sa
# the password
password: sa
# the JDBC URL
url: jdbc:h2:./target/example
# use the simple server factory if you only want to run on a single port
#server:
# type: simple
# connector:
# type: http
# port: 8080
server:
# softNofileLimit: 1000
# hardNofileLimit: 1000
applicationConnectors:
- type: http
port: 8080
- type: https
port: 8443
keyStorePath: example.keystore
keyStorePassword: example
#this requires the alpn-boot library on the JVM's boot classpath
#- type: h2
# port: 8445
# keyStorePath: example.keystore
# keyStorePassword: example
adminConnectors:
- type: http
port: 8081
- type: https
port: 8444
keyStorePath: example.keystore
keyStorePassword: example
# Logging settings.
logging:
appenders:
- type: console
logFormat: "%-6level [%d{HH:mm:ss.SSS}]
[%t] %logger{5} - %X{code} %msg
trace_id=%X{trace_id} span_id=%X{span_id}
trace_flags=%X{trace_flags}%n"
# the key needs to match the configuration key of the renderer (ViewRenderer::getConfigurationKey)
viewRendererConfiguration:
freemarker:
strict_syntax: yes
whitespace_stripping: yes
metrics:
reporters:
- type: graphite
host: localhost
port: 2003
prefix: example
frequency: 1m