Skip to content

Commit

Permalink
Revert "feat(generic-metrics): Add support for subscriptions to gauges (
Browse files Browse the repository at this point in the history
#5736)"

This reverts commit 27a539c.

Co-authored-by: ayirr7 <47572810+ayirr7@users.noreply.github.com>
  • Loading branch information
getsentry-bot and ayirr7 committed Apr 26, 2024
1 parent 07efd32 commit d0c5093
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 35 deletions.
13 changes: 0 additions & 13 deletions snuba/cli/devserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,19 +319,6 @@ def devserver(*, bootstrap: bool, workers: bool) -> None:
"--schedule-ttl=10",
],
),
(
"subscriptions-scheduler-generic-metrics-gauges",
[
"snuba",
"subscriptions-scheduler",
"--entity=generic_metrics_gauges",
"--consumer-group=snuba-generic-metrics-gauges-subscriptions-schedulers",
"--followed-consumer-group=snuba-generic-metrics-gauges-consumers",
"--auto-offset-reset=latest",
"--log-level=debug",
"--schedule-ttl=10",
],
),
(
"subscriptions-executor-metrics",
[
Expand Down
17 changes: 5 additions & 12 deletions snuba/datasets/configuration/generic_metrics/entities/gauges.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ schema:
{
name: tags.raw_value,
type: Array,
args: { schema_modifiers: [readonly], inner_type: { type: String } },
args:
{
schema_modifiers: [readonly],
inner_type: { type: String },
},
},
{
name: min,
Expand Down Expand Up @@ -255,14 +259,3 @@ validators:
required_filter_columns: ["org_id", "project_id"]
required_time_column: timestamp
partition_key_column_name: org_id
subscription_processors:
- processor: AddColumnCondition
args:
extra_condition_data_key: organization
extra_condition_column: org_id
subscription_validators:
- validator: AggregationValidator
args:
max_allowed_aggregations: 3
disallowed_aggregations: [having, orderby]
required_time_column: timestamp
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,4 @@ stream_loader:
args:
header_key: metric_type
header_value: g
commit_log_topic: snuba-generic-metrics-gauges-commit-log
subscription_scheduler_mode: global
subscription_synchronization_timestamp: orig_message_ts
subscription_scheduled_topic: scheduled-subscriptions-generic-metrics-gauges
subscription_result_topic: generic-metrics-subscription-results
subscription_delay_seconds: 60
dlq_topic: snuba-dead-letter-generic-metrics
4 changes: 0 additions & 4 deletions snuba/utils/streams/topics.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ class Topic(Enum):
SUBSCRIPTION_SCHEDULED_GENERIC_METRICS_COUNTERS = (
"scheduled-subscriptions-generic-metrics-counters"
)
SUBSCRIPTION_SCHEDULED_GENERIC_METRICS_GAUGES = (
"scheduled-subscriptions-generic-metrics-gauges"
)

SUBSCRIPTION_RESULTS_EVENTS = "events-subscription-results"
SUBSCRIPTION_RESULTS_TRANSACTIONS = "transactions-subscription-results"
Expand All @@ -52,7 +49,6 @@ class Topic(Enum):
"snuba-generic-metrics-distributions-commit-log"
)
GENERIC_METRICS_COUNTERS_COMMIT_LOG = "snuba-generic-metrics-counters-commit-log"
GENERIC_METRICS_GAUGES_COMMIT_LOG = "snuba-generic-metrics-gauges-commit-log"
GENERIC_EVENTS = "generic-events"
GENERIC_EVENTS_COMMIT_LOG = "snuba-generic-events-commit-log"
GROUP_ATTRIBUTES = "group-attributes"
Expand Down

0 comments on commit d0c5093

Please sign in to comment.