mirror of https://github.com/go-redis/redis.git
chore: update uptrace config
This commit is contained in:
parent
ddb0bc08be
commit
ce04442105
4
Makefile
4
Makefile
|
@ -5,8 +5,8 @@ test: testdeps
|
||||||
echo "go test in $${dir}"; \
|
echo "go test in $${dir}"; \
|
||||||
(cd "$${dir}" && \
|
(cd "$${dir}" && \
|
||||||
go test && \
|
go test && \
|
||||||
go test ./... -short -race &&
|
go test ./... -short -race && \
|
||||||
go test ./... -run=NONE -bench=. -benchmem &&
|
go test ./... -run=NONE -bench=. -benchmem && \
|
||||||
env GOOS=linux GOARCH=386 go test && \
|
env GOOS=linux GOARCH=386 go test && \
|
||||||
go vet); \
|
go vet); \
|
||||||
done
|
done
|
||||||
|
|
|
@ -17,11 +17,17 @@
|
||||||
## ClickHouse database credentials.
|
## ClickHouse database credentials.
|
||||||
##
|
##
|
||||||
ch:
|
ch:
|
||||||
# Connection string for ClickHouse database. For example:
|
addr: clickhouse:9000
|
||||||
# clickhouse://<user>:<password>@<host>:<port>/<database>?sslmode=disable
|
user: default
|
||||||
#
|
password:
|
||||||
# See https://clickhouse.uptrace.dev/guide/golang-clickhouse.html#options
|
database: uptrace
|
||||||
dsn: 'clickhouse://default:@clickhouse:9000/uptrace?sslmode=disable'
|
|
||||||
|
# TLS configuration. Uncomment to enable.
|
||||||
|
# tls:
|
||||||
|
# insecure_skip_verify: true
|
||||||
|
|
||||||
|
# Maximum query execution time.
|
||||||
|
max_execution_time: 30s
|
||||||
|
|
||||||
##
|
##
|
||||||
## A list of pre-configured projects. Each project is fully isolated.
|
## A list of pre-configured projects. Each project is fully isolated.
|
||||||
|
@ -59,28 +65,19 @@ projects:
|
||||||
## Create metrics from spans and events.
|
## Create metrics from spans and events.
|
||||||
##
|
##
|
||||||
metrics_from_spans:
|
metrics_from_spans:
|
||||||
- name: uptrace.tracing.spans_duration
|
- name: uptrace.tracing.spans
|
||||||
description: Spans duration (excluding events)
|
description: Spans duration (excluding events)
|
||||||
instrument: histogram
|
instrument: histogram
|
||||||
unit: microseconds
|
unit: microseconds
|
||||||
value: span.duration / 1000
|
value: span.duration / 1000
|
||||||
attrs:
|
attrs:
|
||||||
- span.system as system
|
- span.system
|
||||||
- service.name as service
|
- span.group_id
|
||||||
- host.name as host
|
- service.name
|
||||||
- span.status_code as status
|
- host.name
|
||||||
where: not span.is_event
|
- span.status_code
|
||||||
|
annotations:
|
||||||
- name: uptrace.tracing.spans
|
- span.name
|
||||||
description: Spans count (excluding events)
|
|
||||||
instrument: counter
|
|
||||||
unit: 1
|
|
||||||
value: span.count
|
|
||||||
attrs:
|
|
||||||
- span.system as system
|
|
||||||
- service.name as service
|
|
||||||
- host.name as host
|
|
||||||
- span.status_code as status
|
|
||||||
where: not span.is_event
|
where: not span.is_event
|
||||||
|
|
||||||
- name: uptrace.tracing.events
|
- name: uptrace.tracing.events
|
||||||
|
@ -89,52 +86,14 @@ metrics_from_spans:
|
||||||
unit: 1
|
unit: 1
|
||||||
value: span.count
|
value: span.count
|
||||||
attrs:
|
attrs:
|
||||||
- span.system as system
|
- span.system
|
||||||
- service.name as service
|
- span.group_id
|
||||||
- host.name as host
|
- service.name
|
||||||
|
- host.name
|
||||||
|
annotations:
|
||||||
|
- span.event_name
|
||||||
where: span.is_event
|
where: span.is_event
|
||||||
|
|
||||||
##
|
|
||||||
## To require authentication, uncomment the following section.
|
|
||||||
##
|
|
||||||
auth:
|
|
||||||
# users:
|
|
||||||
# - username: uptrace
|
|
||||||
# password: uptrace
|
|
||||||
# - username: admin
|
|
||||||
# password: admin
|
|
||||||
|
|
||||||
# # Cloudflare user provider: uses Cloudflare Zero Trust Access (Identity)
|
|
||||||
# # See https://developers.cloudflare.com/cloudflare-one/identity/ for more info.
|
|
||||||
# cloudflare:
|
|
||||||
# # The base URL of the Cloudflare Zero Trust team.
|
|
||||||
# - team_url: https://myteam.cloudflareaccess.com
|
|
||||||
# # The Application Audience (AUD) Tag for this application.
|
|
||||||
# # You can retrieve this from the Cloudflare Zero Trust 'Access' Dashboard.
|
|
||||||
# audience: bea6df23b944e4a0cd178609ba1bb64dc98dfe1f66ae7b918e563f6cf28b37e0
|
|
||||||
|
|
||||||
# # OpenID Connect (Single Sign-On)
|
|
||||||
# oidc:
|
|
||||||
# # The ID is used in API endpoints, for example, in redirect URL
|
|
||||||
# # `http://<uptrace-host>/api/v1/sso/<oidc-id>/callback`.
|
|
||||||
# - id: keycloak
|
|
||||||
# # Display name for the button in the login form.
|
|
||||||
# # Default to 'OpenID Connect'
|
|
||||||
# display_name: Keycloak
|
|
||||||
# # The base URL for the OIDC provider.
|
|
||||||
# issuer_url: http://localhost:8080/realms/uptrace
|
|
||||||
# # The OAuth 2.0 Client ID
|
|
||||||
# client_id: uptrace
|
|
||||||
# # The OAuth 2.0 Client Secret
|
|
||||||
# client_secret: ogbhd8Q0X0e5AZFGSG3m9oirPvnetqkA
|
|
||||||
# # Additional OAuth 2.0 scopes to request from the OIDC provider.
|
|
||||||
# # Defaults to 'profile'. 'openid' is requested by default and need not be specified.
|
|
||||||
# scopes:
|
|
||||||
# - profile
|
|
||||||
# # The OIDC UserInfo claim to use as the user's username.
|
|
||||||
# # Defaults to 'preferred_username'.
|
|
||||||
# claim: preferred_username
|
|
||||||
|
|
||||||
##
|
##
|
||||||
## Alerting rules for monitoring metrics.
|
## Alerting rules for monitoring metrics.
|
||||||
##
|
##
|
||||||
|
@ -200,6 +159,47 @@ alertmanager_client:
|
||||||
urls:
|
urls:
|
||||||
- 'http://alertmanager:9093/api/v2/alerts'
|
- 'http://alertmanager:9093/api/v2/alerts'
|
||||||
|
|
||||||
|
##
|
||||||
|
## To require authentication, uncomment the following section.
|
||||||
|
##
|
||||||
|
auth:
|
||||||
|
# users:
|
||||||
|
# - username: uptrace
|
||||||
|
# password: uptrace
|
||||||
|
# - username: admin
|
||||||
|
# password: admin
|
||||||
|
|
||||||
|
# # Cloudflare user provider: uses Cloudflare Zero Trust Access (Identity)
|
||||||
|
# # See https://developers.cloudflare.com/cloudflare-one/identity/ for more info.
|
||||||
|
# cloudflare:
|
||||||
|
# # The base URL of the Cloudflare Zero Trust team.
|
||||||
|
# - team_url: https://myteam.cloudflareaccess.com
|
||||||
|
# # The Application Audience (AUD) Tag for this application.
|
||||||
|
# # You can retrieve this from the Cloudflare Zero Trust 'Access' Dashboard.
|
||||||
|
# audience: bea6df23b944e4a0cd178609ba1bb64dc98dfe1f66ae7b918e563f6cf28b37e0
|
||||||
|
|
||||||
|
# # OpenID Connect (Single Sign-On)
|
||||||
|
# oidc:
|
||||||
|
# # The ID is used in API endpoints, for example, in redirect URL
|
||||||
|
# # `http://<uptrace-host>/api/v1/sso/<oidc-id>/callback`.
|
||||||
|
# - id: keycloak
|
||||||
|
# # Display name for the button in the login form.
|
||||||
|
# # Default to 'OpenID Connect'
|
||||||
|
# display_name: Keycloak
|
||||||
|
# # The base URL for the OIDC provider.
|
||||||
|
# issuer_url: http://localhost:8080/realms/uptrace
|
||||||
|
# # The OAuth 2.0 Client ID
|
||||||
|
# client_id: uptrace
|
||||||
|
# # The OAuth 2.0 Client Secret
|
||||||
|
# client_secret: ogbhd8Q0X0e5AZFGSG3m9oirPvnetqkA
|
||||||
|
# # Additional OAuth 2.0 scopes to request from the OIDC provider.
|
||||||
|
# # Defaults to 'profile'. 'openid' is requested by default and need not be specified.
|
||||||
|
# scopes:
|
||||||
|
# - profile
|
||||||
|
# # The OIDC UserInfo claim to use as the user's username.
|
||||||
|
# # Defaults to 'preferred_username'.
|
||||||
|
# claim: preferred_username
|
||||||
|
|
||||||
##
|
##
|
||||||
## Various options to tweak ClickHouse schema.
|
## Various options to tweak ClickHouse schema.
|
||||||
## For changes to take effect, you need reset the ClickHouse database with `ch reset`.
|
## For changes to take effect, you need reset the ClickHouse database with `ch reset`.
|
||||||
|
@ -215,14 +215,14 @@ ch_schema:
|
||||||
#cluster: uptrace1
|
#cluster: uptrace1
|
||||||
|
|
||||||
spans:
|
spans:
|
||||||
storage_policy: 'default'
|
|
||||||
# Delete spans data after 30 days.
|
# Delete spans data after 30 days.
|
||||||
ttl_delete: 30 DAY
|
ttl_delete: 30 DAY
|
||||||
|
storage_policy: 'default'
|
||||||
|
|
||||||
metrics:
|
metrics:
|
||||||
storage_policy: 'default'
|
|
||||||
# Delete metrics data after 90 days.
|
# Delete metrics data after 90 days.
|
||||||
ttl_delete: 90 DAY
|
ttl_delete: 90 DAY
|
||||||
|
storage_policy: 'default'
|
||||||
|
|
||||||
##
|
##
|
||||||
## Addresses on which Uptrace receives gRPC and HTTP requests.
|
## Addresses on which Uptrace receives gRPC and HTTP requests.
|
||||||
|
@ -290,6 +290,25 @@ db:
|
||||||
# Make sure the directory is writable by Uptrace process.
|
# Make sure the directory is writable by Uptrace process.
|
||||||
dsn: 'file:uptrace.sqlite3?_pragma=foreign_keys(1)&_pragma=busy_timeout(1000)'
|
dsn: 'file:uptrace.sqlite3?_pragma=foreign_keys(1)&_pragma=busy_timeout(1000)'
|
||||||
|
|
||||||
|
##
|
||||||
|
## uptrace-go client configuration.
|
||||||
|
## Uptrace sends internal telemetry here. Defaults to listen.grpc.addr.
|
||||||
|
##
|
||||||
|
uptrace_go:
|
||||||
|
# dsn: http://project1_secret_token@localhost:14317/1
|
||||||
|
# tls:
|
||||||
|
# cert_file: config/tls/uptrace.crt
|
||||||
|
# key_file: config/tls/uptrace.key
|
||||||
|
# insecure_skip_verify: true
|
||||||
|
|
||||||
|
##
|
||||||
|
## Logging configuration.
|
||||||
|
##
|
||||||
|
logs:
|
||||||
|
# Zap minimal logging level.
|
||||||
|
# Valid values: DEBUG, INFO, WARN, ERROR, DPANIC, PANIC, FATAL.
|
||||||
|
level: INFO
|
||||||
|
|
||||||
# Secret key that is used to sign JWT tokens etc.
|
# Secret key that is used to sign JWT tokens etc.
|
||||||
secret_key: 102c1a557c314fc28198acd017960843
|
secret_key: 102c1a557c314fc28198acd017960843
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue