Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/sentry/conf/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -1668,6 +1668,10 @@ def create_partitioned_queues(name):
# store. MUST be a power of two.
SENTRY_CHUNK_UPLOAD_BLOB_SIZE = 8 * 1024 * 1024 # 8MB

# This flag tell DEVSERVICES to start the ingest-metrics-consumer in order to work on
# metrics in the development environment. Note: this is "metrics" the product
SENTRY_USE_METRICS_DEV = False

# This flags activates the Change Data Capture backend in the development environment
SENTRY_USE_CDC_DEV = False

Expand Down
4 changes: 4 additions & 0 deletions src/sentry/runner/commands/devserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"--force-offset-reset",
"latest",
],
"metrics": ["sentry", "run", "ingest-metrics-consumer"],
}


Expand Down Expand Up @@ -232,6 +233,9 @@ def devserver(
for name, topic in settings.KAFKA_SUBSCRIPTION_RESULT_TOPICS.items():
daemons += [_get_daemon("subscription-consumer", "--topic", topic, suffix=name)]

if settings.SENTRY_USE_METRICS_DEV and settings.SENTRY_USE_RELAY:
daemons += [_get_daemon("metrics")]

if settings.SENTRY_USE_RELAY:
daemons += [_get_daemon("ingest")]

Expand Down
6 changes: 3 additions & 3 deletions src/sentry/runner/commands/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,15 +526,15 @@ def ingest_consumer(consumer_types, all_consumer_types, **options):
get_ingest_consumer(consumer_types=consumer_types, executor=executor, **options).run()


@run.command("metrics-consumer")
@run.command("ingest-metrics-consumer")
@log_options()
@click.option(
"--group_id",
default="metrics-consumer",
default="ingest-metrics-consumer",
help="Consumer group to track metric indexer offsets. ",
)
@click.option("--topic", default="ingest-metrics", help="Topic to get subscription updates from.")
@batching_kafka_options("metrics-consumer")
@batching_kafka_options("ingest-metrics-consumer")
@configuration
def metrics_consumer(**options):

Expand Down