-
Notifications
You must be signed in to change notification settings - Fork 70
/
Copy pathapplication.yml
256 lines (220 loc) · 7.24 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
inspectit-eum-server:
definitions:
page_ready_time:
measure-type: LONG
value-expression: "{t_page}"
unit: ms
views:
'[page_ready_time/SUM]': {aggregation: SUM}
'[page_ready_time/COUNT]': {aggregation: COUNT}
load_time:
measure-type: LONG
value-expression: "{t_done}"
beacon-requirements:
- field: rt.quit
requirement: NOT_EXISTS
unit: ms
views:
'[load_time/SUM]': {aggregation: SUM}
'[load_time/COUNT]': {aggregation: COUNT}
calc_load_time:
measure-type: LONG
value-expression: "{rt.end} - {rt.tstart}"
beacon-requirements:
- field: rt.quit
requirement: NOT_EXISTS
unit: ms
views:
'[calc_load_time/SUM]': {aggregation: SUM}
'[calc_load_time/COUNT]': {aggregation: COUNT}
start_timestamp:
measure-type: LONG
value-expression: "{rt.tstart}"
unit: ms
navigation_start_timestamp:
measure-type: LONG
value-expression: "{rt.nstart}"
unit: ms
end_timestamp:
measure-type: LONG
value-expression: "{rt.end}"
unit: ms
views:
end_timestamp:
aggregation: LAST_VALUE
tags: {APPLICATION: true}
tags:
extra:
APPLICATION: my-application
beacon:
COUNTRY_CODE:
input: COUNTRY_CODE
URL:
input: u
OS:
input: ua.plt
U_NO_QUERY:
input: u
replacements:
- keep-no-match: false
pattern: "^([^?]*)(\\?.*)?$"
replacement: "$1"
U_HOST:
input: u
replacements:
- keep-no-match: false
pattern: "^.*\\/\\/([^:\\/]*).*$"
replacement: "$1"
U_PORT:
input: u
replacements:
- keep-no-match: false
pattern: "^.*\\/\\/([^:\\/]*):(\\d+).*$"
replacement: "$2"
U_PATH:
input: u
replacements:
- keep-no-match: false
pattern: "^.*\\/\\/([^\\/]*)([^?]*).*$"
replacement: "$2"
PGU_NO_QUERY:
input: pgu
replacements:
- keep-no-match: false
pattern: "^([^?]*)(\\?.*)?$"
replacement: "$1"
PGU_HOST:
input: pgu
replacements:
- keep-no-match: false
pattern: "^.*\\/\\/([^:\\/]*).*$"
replacement: "$1"
PGU_PORT:
input: pgu
replacements:
- keep-no-match: false
pattern: "^.*\\/\\/([^:\\/]*):(\\d+).*$"
replacement: "$2"
PGU_PATH:
input: pgu
replacements:
- keep-no-match: false
pattern: "^.*\\/\\/([^\\/]*)([^?]*).*$"
replacement: "$2"
define-as-global:
- URL
- OS
- COUNTRY_CODE
# metrics exporter settings
exporters:
metrics:
prometheus:
# Determines whether the prometheus exporter is enabled.
enabled: true
# The host of the prometheus server.
host: localhost
# The port of the prometheus server.
port: 8888
influx:
# Determines whether the influx exporter is enabled.
enabled: true
# the export interval of the metrics.
export-interval: 15s
# The http url of influx.
# If this property is not set, the influx-exporter will not be started.
# url: "http://localhost:8086"
# The database to write to.
# If this property is not set, the influx-exporter will not be started.
database: "inspectit"
# The retention policy to write to.
# If this property is not set, the influx-exporter will not be started.
retention-policy: "autogen"
# If true, the specified database will be created with the autogen retention policy.
create-database: true
# If disabled, the raw values of each counter will be written to the InfluxDB on each export.
# When enabled, only the change of the counter in comparison to the previous export will be written.
# This difference will only be written if the counter has changed (=the difference is non-zero).
# This can greatly reduce the total data written to influx and makes writing queries easier.
counters-as-differences: true
# The size of the buffer for failed batches.
# E.g. if the exportInterval is 15s and the buffer-size is 4, the export will keep up to one minute of data in memory.
buffer-size: 40
tracing:
jaeger:
# If jaeger exporter for the OT received spans is enabled.
enabled: true
# location of the jaeger gRPC API.
# either a valid NameResolver-compliant URI, or an authority string.
# If this property is not set, the jaeger-exporter will not be started.
# grpc: localhost:14250
# service name for all exported spans.
service-name: browser-js
beacons:
http:
# Whether beacons should be exported via HTTP.
enabled: false
# The endpoint to which the beacons are to be sent.
endpoint-url: http://localhost:8080
# The max. amount of threads exporting beacons (min. 1).
worker-threads: 2
# The maximum number of beacons to be exported using a single HTTP request (min. 1).
max-batch-size: 100
# The flush interval to export beacons in case the 'max-batch-size' has not been reached (min. 1 second).
flush-interval: 5s
# When specified, the request will be using this username for Basic authentication.
# username:
# The password used for Basic authentication.
# password:
# settings for the EUM server's self-monitoring
self-monitoring:
# whether self-monitoring is enabled
enabled: true
# the prefix used for the self-monitoring metrics
metricPrefix: "inspectit-eum/self/"
# definitions of the self-monitoring metrics
metrics:
# counts the amount of received EUM beacons
beacons_received:
measure-type: LONG
unit: amount
views:
'[inspectit-eum/self/beacons_received/count]':
aggregation: COUNT
tags:
is_error: true
beacons_export:
measure-type: LONG
unit: amount
views:
# the amount of beacon exports
'[inspectit-eum/self/beacons_export/count]':
aggregation: COUNT
tags:
exporter: true
is_error: true
# the export duration
'[inspectit-eum/self/beacons_export/duration/sum]':
aggregation: SUM
tags:
exporter: true
is_error: true
beacons_export_batch:
measure-type: LONG
unit: amount
views:
# the amount of elements in a single export execution
'[inspectit-eum/self/beacons_export/batch/sum]':
aggregation: SUM
tags:
exporter: true
is_error: true
# settings for exposing resource timing metrics
resource-timing:
enabled: true
# ACTUATOR PROPERTIES
management:
# Whether to enable or disable all endpoints by default.
endpoints.enabled-by-default: false
endpoint:
# Whether to enable the health endpoint.
health.enabled: true