Skip to content

Commit 9486a83

Browse files
authored
feat: provide monitoring-related configurations (#3611)
In accordance with getsentry/sentry-docs#12660
1 parent 4fff2e3 commit 9486a83

File tree

4 files changed

+40
-0
lines changed

4 files changed

+40
-0
lines changed

docker-compose.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ x-snuba-defaults: &snuba_defaults
8484
# Leaving the value empty to just pass whatever is set
8585
# on the host system (or in the .env file)
8686
SENTRY_EVENT_RETENTION_DAYS:
87+
# If you have statsd server, you can utilize that to monitor self-hosted Snuba containers.
88+
# To start, state these environment variables below on your `.env.` file and adjust the options as needed.
89+
SNUBA_STATSD_HOST: # Example value: "100.100.123.123". Must be an IP address, not domain name
90+
SNUBA_STATSD_PORT: # Example value: 8125
8791
services:
8892
smtp:
8993
<<: *restart_policy

relay/config.example.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,14 @@ processing:
1818
#
1919
# health:
2020
# max_memory_percent: 1.0
21+
22+
# If you have statsd server, you can utilize that to monitor self-hosted Relay.
23+
# To start, uncomment the following line and adjust the options as needed.
24+
#
25+
# metrics:
26+
# statsd: "100.100.123.123:8125" # It is recommended to use IP address instead of domain name
27+
# prefix: "sentry.relay" # Adjust this to your needs, default is "sentry.relay"
28+
# sample_rate: 1.0 # Adjust this to your needs, default is 1.0
29+
# # `periodic_secs` is the interval for periodic metrics emitted from Relay.
30+
# # Setting it to `0` seconds disables the periodic metrics.
31+
# periodic_secs: 5

sentry/sentry.conf.example.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,3 +396,21 @@ def get_internal_network():
396396
# to allow specific hosts. It might be IP addresses or domain names (without `http://` or `https://`).
397397

398398
# SENTRY_OPTIONS["relay.span-normalization.allowed_hosts"] = ["example.com", "192.168.10.1"]
399+
400+
##############
401+
# Monitoring #
402+
##############
403+
404+
# By default, Sentry uses dummy statsd monitoring backend that is a no-op.
405+
# If you have a statsd server, you can utilize that to monitor self-hosted
406+
# Sentry for "sentry"-related containers.
407+
#
408+
# To start, uncomment the following line and adjust the options as needed.
409+
410+
# SENTRY_METRICS_BACKEND = 'sentry.metrics.statsd.StatsdMetricsBackend'
411+
# SENTRY_METRICS_OPTIONS: dict[str, Any] = {
412+
# 'host': '100.100.123.123', # It is recommended to use IP address instead of domain name
413+
# 'port': 8125,
414+
# }
415+
# SENTRY_METRICS_SAMPLE_RATE = 1.0 # Adjust this to your needs, default is 1.0
416+
# SENTRY_METRICS_PREFIX = "sentry." # Adjust this to your needs, default is "sentry."

symbolicator/config.example.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,10 @@ logging:
66
metrics:
77
statsd: null
88
sentry_dsn: null # TODO: Automatically fill this with the internal project DSN
9+
10+
# If you have statsd server, you can utilize that to monitor self-hosted Symbolicator.
11+
# To start, uncomment the following line and adjust the options as needed.
12+
#
13+
# metrics:
14+
# statsd: "100.100.123.123:8125" # It is recommended to use IP address instead of domain name
15+
# prefix: "sentry.symbolicator" # Adjust this to your needs, default is "symbolicator"

0 commit comments

Comments
 (0)