Skip to content

sql: enable metric sinks by default (SQL-732) - #39653

Merged
mtabebe merged 1 commit into
MaterializeInc:mainfrom
mtabebe:michaelabebe/sql-732-enable-the-metric-sink-feature
Oct 8, 2026
Merged

mtabebe merged 1 commit into
MaterializeInc:mainfrom
mtabebe:michaelabebe/sql-732-enable-the-metric-sink-feature

Conversation

@mtabebe

@mtabebe mtabebe commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

enable_metric_sink has defaulted off since the feature landed, but enabled in CI.

Now, default enable_metric_sink to true. Every replica of every cluster now renders the CURATED definitions, mz_metric_arrangement_sizes and mz_metric_dataflow_errors, each a dataflow with its own arrangements on that cluster's compute. CREATE/DROP METRIC SINK and SHOW METRIC SINKS become available at the same time.

Set corresponding flags in LD so we have a kill switch.

NOTE: the two switches are not interchangeable. enable_metric_sink = false only stops installs on replicas created after the flip. It does not tear down running sinks, and a reconnecting replica re-renders them from the controller's command history, so a replica restart does not clear them either. To stop sinks that are already running, use disabled_metric_sinks, which reconcile_metric_sinks converges on by tearing them down.

`enable_metric_sink` has defaulted off since the feature landed, but
enabled in CI.

Now, default `enable_metric_sink` to true. Every replica of every cluster now
renders the `CURATED` definitions, `mz_metric_arrangement_sizes` and
`mz_metric_dataflow_errors`, each a dataflow with its own arrangements on
that cluster's compute. `CREATE`/`DROP METRIC SINK` and `SHOW METRIC SINKS`
become available at the same time.

Set corresponding flags in LD so we have a kill switch.

NOTE: the two switches are not interchangeable. `enable_metric_sink =
false` only stops installs on replicas created after the flip. It does not
tear down running sinks, and a reconnecting replica re-renders them from
the controller's command history, so a replica restart does not clear them
either. To stop sinks that are already running, use
`disabled_metric_sinks`, which `reconcile_metric_sinks` converges on by
tearing them down.
@mtabebe
mtabebe force-pushed the michaelabebe/sql-732-enable-the-metric-sink-feature branch from c13a9e1 to 4ec97ef Compare October 7, 2026 20:54
@mtabebe
mtabebe marked this pull request as ready for review October 8, 2026 10:52
@mtabebe
mtabebe requested a review from a team as a code owner October 8, 2026 10:52
@mtabebe
mtabebe merged commit 2d2a689 into MaterializeInc:main Oct 8, 2026
82 checks passed
@bosconi bosconi mentioned this pull request Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants