forked from eclipse-ditto/ditto
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathditto-kamon.conf
114 lines (104 loc) · 2.25 KB
/
ditto-kamon.conf
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# To be included in kamon.conf of all services.
kamon {
init {
hide-banner = yes
attach-instrumentation = no
}
metric {
tick-interval = 10s
}
prometheus {
start-embedded-http-server = false
buckets {
default-buckets = [
1,
5,
10,
15,
20,
30,
100,
300,
1000,
3000,
10000,
30000,
100000
]
time-buckets = [
0.001,
0.003,
0.005,
0.01,
0.025,
0.05,
0.075,
0.1,
0.15,
0.2,
0.25,
0.3,
0.35,
0.4,
0.45,
0.5,
0.75,
1,
1.25,
1.5,
1.75,
2.0,
2.5,
3,
5,
7.5,
10,
15,
20,
25,
30,
35,
40,
45,
50,
55,
60
]
}
}
modules {
# Important! Disable modules relying on classes in the com.sun.jna package.
# otherwise we cannot run with OpenJDK Java Docker Images
process-metrics.enabled = no
host-metrics.enabled = no
otel-trace-reporter.enabled = no
otel-trace-reporter.enabled = ${?DITTO_TRACING_ENABLED}
otel-trace-reporter.enabled = ${?DITTO_TRACING_OTEL_TRACE_REPORTER_ENABLED}
}
trace {
# disable reporting by default
# - always: report all traces.
# - never: don't report any trace.
# - random: randomly decide using the probability defined in the random-sampler.probability setting.
# - adaptive: keeps dynamic samplers for each operation while trying to achieve a set throughput goal.
sampler = never
sampler = ${?DITTO_TRACING_SAMPLER}
# Probability of a span being sampled. Must be a value between 0 and 1.
random-sampler.probability = 0.01
random-sampler.probability = ${?DITTO_TRACING_RANDOM_SAMPLER_PROBABILITY}
adaptive-sampler.throughput = 600
adaptive-sampler.throughput = ${?DITTO_TRACING_ADAPTIVE_SAMPLER_THROUGHPUT}
# must be double for w3c trace context
identifier-scheme = double
}
propagation {
http {
default {
entries {
incoming.span = "w3c"
outgoing.span = "w3c"
}
}
}
}
}