17
17
# # ClickHouse database credentials.
18
18
# #
19
19
ch :
20
- # Connection string for ClickHouse database. For example:
21
- # clickhouse://<user>:<password>@<host>:<port>/<database>?sslmode=disable
22
- #
23
- # See https://clickhouse.uptrace.dev/guide/golang-clickhouse.html#options
24
- dsn : ' clickhouse://default:@clickhouse:9000/uptrace?sslmode=disable'
20
+ addr : clickhouse:9000
21
+ user : default
22
+ password :
23
+ database : uptrace
24
+
25
+ # TLS configuration. Uncomment to enable.
26
+ # tls:
27
+ # insecure_skip_verify: true
28
+
29
+ # Maximum query execution time.
30
+ max_execution_time : 30s
25
31
26
32
# #
27
33
# # A list of pre-configured projects. Each project is fully isolated.
@@ -59,28 +65,19 @@ projects:
59
65
# # Create metrics from spans and events.
60
66
# #
61
67
metrics_from_spans :
62
- - name : uptrace.tracing.spans_duration
68
+ - name : uptrace.tracing.spans
63
69
description : Spans duration (excluding events)
64
70
instrument : histogram
65
71
unit : microseconds
66
72
value : span.duration / 1000
67
73
attrs :
68
- - span.system as system
69
- - service.name as service
70
- - host.name as host
71
- - span.status_code as status
72
- where : not span.is_event
73
-
74
- - name : uptrace.tracing.spans
75
- description : Spans count (excluding events)
76
- instrument : counter
77
- unit : 1
78
- value : span.count
79
- attrs :
80
- - span.system as system
81
- - service.name as service
82
- - host.name as host
83
- - span.status_code as status
74
+ - span.system
75
+ - span.group_id
76
+ - service.name
77
+ - host.name
78
+ - span.status_code
79
+ annotations :
80
+ - span.name
84
81
where : not span.is_event
85
82
86
83
- name : uptrace.tracing.events
@@ -89,52 +86,14 @@ metrics_from_spans:
89
86
unit : 1
90
87
value : span.count
91
88
attrs :
92
- - span.system as system
93
- - service.name as service
94
- - host.name as host
89
+ - span.system
90
+ - span.group_id
91
+ - service.name
92
+ - host.name
93
+ annotations :
94
+ - span.event_name
95
95
where : span.is_event
96
96
97
- # #
98
- # # To require authentication, uncomment the following section.
99
- # #
100
- auth :
101
- # users:
102
- # - username: uptrace
103
- # password: uptrace
104
- # - username: admin
105
- # password: admin
106
-
107
- # # Cloudflare user provider: uses Cloudflare Zero Trust Access (Identity)
108
- # # See https://developers.cloudflare.com/cloudflare-one/identity/ for more info.
109
- # cloudflare:
110
- # # The base URL of the Cloudflare Zero Trust team.
111
- # - team_url: https://myteam.cloudflareaccess.com
112
- # # The Application Audience (AUD) Tag for this application.
113
- # # You can retrieve this from the Cloudflare Zero Trust 'Access' Dashboard.
114
- # audience: bea6df23b944e4a0cd178609ba1bb64dc98dfe1f66ae7b918e563f6cf28b37e0
115
-
116
- # # OpenID Connect (Single Sign-On)
117
- # oidc:
118
- # # The ID is used in API endpoints, for example, in redirect URL
119
- # # `http://<uptrace-host>/api/v1/sso/<oidc-id>/callback`.
120
- # - id: keycloak
121
- # # Display name for the button in the login form.
122
- # # Default to 'OpenID Connect'
123
- # display_name: Keycloak
124
- # # The base URL for the OIDC provider.
125
- # issuer_url: http://localhost:8080/realms/uptrace
126
- # # The OAuth 2.0 Client ID
127
- # client_id: uptrace
128
- # # The OAuth 2.0 Client Secret
129
- # client_secret: ogbhd8Q0X0e5AZFGSG3m9oirPvnetqkA
130
- # # Additional OAuth 2.0 scopes to request from the OIDC provider.
131
- # # Defaults to 'profile'. 'openid' is requested by default and need not be specified.
132
- # scopes:
133
- # - profile
134
- # # The OIDC UserInfo claim to use as the user's username.
135
- # # Defaults to 'preferred_username'.
136
- # claim: preferred_username
137
-
138
97
# #
139
98
# # Alerting rules for monitoring metrics.
140
99
# #
@@ -200,6 +159,47 @@ alertmanager_client:
200
159
urls :
201
160
- ' http://alertmanager:9093/api/v2/alerts'
202
161
162
+ # #
163
+ # # To require authentication, uncomment the following section.
164
+ # #
165
+ auth :
166
+ # users:
167
+ # - username: uptrace
168
+ # password: uptrace
169
+ # - username: admin
170
+ # password: admin
171
+
172
+ # # Cloudflare user provider: uses Cloudflare Zero Trust Access (Identity)
173
+ # # See https://developers.cloudflare.com/cloudflare-one/identity/ for more info.
174
+ # cloudflare:
175
+ # # The base URL of the Cloudflare Zero Trust team.
176
+ # - team_url: https://myteam.cloudflareaccess.com
177
+ # # The Application Audience (AUD) Tag for this application.
178
+ # # You can retrieve this from the Cloudflare Zero Trust 'Access' Dashboard.
179
+ # audience: bea6df23b944e4a0cd178609ba1bb64dc98dfe1f66ae7b918e563f6cf28b37e0
180
+
181
+ # # OpenID Connect (Single Sign-On)
182
+ # oidc:
183
+ # # The ID is used in API endpoints, for example, in redirect URL
184
+ # # `http://<uptrace-host>/api/v1/sso/<oidc-id>/callback`.
185
+ # - id: keycloak
186
+ # # Display name for the button in the login form.
187
+ # # Default to 'OpenID Connect'
188
+ # display_name: Keycloak
189
+ # # The base URL for the OIDC provider.
190
+ # issuer_url: http://localhost:8080/realms/uptrace
191
+ # # The OAuth 2.0 Client ID
192
+ # client_id: uptrace
193
+ # # The OAuth 2.0 Client Secret
194
+ # client_secret: ogbhd8Q0X0e5AZFGSG3m9oirPvnetqkA
195
+ # # Additional OAuth 2.0 scopes to request from the OIDC provider.
196
+ # # Defaults to 'profile'. 'openid' is requested by default and need not be specified.
197
+ # scopes:
198
+ # - profile
199
+ # # The OIDC UserInfo claim to use as the user's username.
200
+ # # Defaults to 'preferred_username'.
201
+ # claim: preferred_username
202
+
203
203
# #
204
204
# # Various options to tweak ClickHouse schema.
205
205
# # For changes to take effect, you need reset the ClickHouse database with `ch reset`.
@@ -215,14 +215,14 @@ ch_schema:
215
215
# cluster: uptrace1
216
216
217
217
spans :
218
- storage_policy : ' default'
219
218
# Delete spans data after 30 days.
220
219
ttl_delete : 30 DAY
220
+ storage_policy : ' default'
221
221
222
222
metrics :
223
- storage_policy : ' default'
224
223
# Delete metrics data after 90 days.
225
224
ttl_delete : 90 DAY
225
+ storage_policy : ' default'
226
226
227
227
# #
228
228
# # Addresses on which Uptrace receives gRPC and HTTP requests.
290
290
# Make sure the directory is writable by Uptrace process.
291
291
dsn : ' file:uptrace.sqlite3?_pragma=foreign_keys(1)&_pragma=busy_timeout(1000)'
292
292
293
+ # #
294
+ # # uptrace-go client configuration.
295
+ # # Uptrace sends internal telemetry here. Defaults to listen.grpc.addr.
296
+ # #
297
+ uptrace_go :
298
+ # dsn: http://project1_secret_token@localhost:14317/1
299
+ # tls:
300
+ # cert_file: config/tls/uptrace.crt
301
+ # key_file: config/tls/uptrace.key
302
+ # insecure_skip_verify: true
303
+
304
+ # #
305
+ # # Logging configuration.
306
+ # #
307
+ logs :
308
+ # Zap minimal logging level.
309
+ # Valid values: DEBUG, INFO, WARN, ERROR, DPANIC, PANIC, FATAL.
310
+ level : INFO
311
+
293
312
# Secret key that is used to sign JWT tokens etc.
294
313
secret_key : 102c1a557c314fc28198acd017960843
295
314
0 commit comments