self-hosted/relay/config.example.yml
Reinaldy Rafli fe477b41d9
feat: statsd configuration through environment variables (#4031)
* feat: statsd configuration through environment variables

* feat: provide statsd config via environment variables for relay and symbolicator

* fix: default statsd value to localhost

* Update sentry/sentry.conf.example.py
2025-11-14 03:37:23 +00:00

37 lines
1.2 KiB
YAML

relay:
upstream: "http://web:9000/"
host: 0.0.0.0
port: 3000
logging:
level: WARN
processing:
enabled: true
kafka_config:
- {name: "bootstrap.servers", value: "kafka:9092"}
- {name: "message.max.bytes", value: 50000000} # 50MB
redis: redis://redis:6379
geoip_path: "/geoip/GeoLite2-City.mmdb"
# In some cases, relay might fail to find out the actual machine memory
# therefore it makes the healthcheck fail and events can't be submitted.
# See https://github.com/getsentry/self-hosted/issues/3330 for more details.
# As a workaround, uncomment the following `health` and `spool` sections:
#
# health:
# max_memory_percent: 1.0
# spool:
# envelopes:
# path: "/tmp/relay-spool-envelopes"
# max_backpressure_memory_percent: 1.0
# If you have statsd server, you can utilize that to monitor self-hosted Relay.
# To start, uncomment the following `metrics` section and adjust the options as needed.
#
metrics:
statsd: "${RELAY_STATSD_ADDR}"
prefix: "sentry.relay" # Adjust this to your needs, default is "sentry.relay"
# sample_rate: 1.0 # Adjust this to your needs, default is 1.0
# # `periodic_secs` is the interval for periodic metrics emitted from Relay.
# # Setting it to `0` seconds disables the periodic metrics.
# periodic_secs: 5