Skip to content

Commit 066bf26

Browse files
authored
feat: Allow metric alerts to be used in on-prem (#735)
This enables metric alerts for all on-prem users. We just need to start a few consumers and enable the feature.
1 parent 245ae95 commit 066bf26

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

docker-compose.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,12 @@ services:
143143
snuba-replacer:
144144
<< : *snuba_defaults
145145
command: replacer --storage events --auto-offset-reset=latest --max-batch-size 3
146+
snuba-subscription-consumer-events:
147+
<< : *snuba_defaults
148+
command: subscriptions --auto-offset-reset=latest --consumer-group=snuba-events-subscriptions-consumers --topic=events --result-topic=events-subscription-results --dataset=events --commit-log-topic=snuba-commit-log --commit-log-group=snuba-consumers --delay-seconds=60 --schedule-ttl=60
149+
snuba-subscription-consumer-transactions:
150+
<< : *snuba_defaults
151+
command: subscriptions --auto-offset-reset=latest --consumer-group=snuba-transactions-subscriptions-consumers --topic=events --result-topic=transactions-subscription-results --dataset=transactions --commit-log-topic=snuba-commit-log --commit-log-group=snuba-transactions-consumers --delay-seconds=60 --schedule-ttl=60
146152
snuba-cleanup:
147153
<< : *snuba_defaults
148154
image: snuba-cleanup-onpremise-local
@@ -186,6 +192,12 @@ services:
186192
<< : *sentry_defaults
187193
# Increase `--commit-batch-size 1` below to deal with high-load environments.
188194
command: run post-process-forwarder --commit-batch-size 1
195+
subscription-consumer-events:
196+
<< : *sentry_defaults
197+
command: run query-subscription-consumer --commit-batch-size 1 --topic events-subscription-results
198+
subscription-consumer-transactions:
199+
<< : *sentry_defaults
200+
command: run query-subscription-consumer --commit-batch-size 1 --topic transactions-subscription-results
189201
sentry-cleanup:
190202
<< : *sentry_defaults
191203
image: sentry-cleanup-onpremise-local

sentry/sentry.conf.example.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,9 +240,11 @@ def get_internal_network():
240240
"organizations:discover",
241241
"organizations:events",
242242
"organizations:global-views",
243+
"organizations:incidents",
243244
"organizations:integrations-issue-basic",
244245
"organizations:integrations-issue-sync",
245246
"organizations:invite-members",
247+
"organizations:metric-alert-builder-aggregate",
246248
"organizations:sso-basic",
247249
"organizations:sso-rippling",
248250
"organizations:sso-saml2",

0 commit comments

Comments
 (0)