Skip to content

feat(metrics): add switches for mirrored metric sources - #2188

Open
loglapa wants to merge 1 commit into
Altinity:0.28.0from
loglapa:fix/2166-metric-source-switches
Open

loglapa wants to merge 1 commit into
Altinity:0.28.0from
loglapa:fix/2166-metric-source-switches

Conversation

@loglapa

@loglapa loglapa commented Dec 6, 2026

Copy link
Copy Markdown

Adds global metrics.sources.metrics, metrics.sources.asynchronousMetrics, and metrics.sources.events switches. All default to enabled. Explicit false survives configuration merging; disabling asynchronous metrics also skips its capability probe. Calculated metrics and other collectors remain available.

Includes configuration, CRD and Helm schema updates and regression tests. Fixes #2166.

Validation: configuration and SQL tests passed; all eight switch combinations were exercised through the exporter against ClickHouse 26.11.8.18 in Docker, including an expired-replica-session fixture. Both SQL layouts executed successfully, and default SQL matches the baseline. Helm checks and scoped Go vet passed. Older ClickHouse releases and Kubernetes e2e were not run locally.

  • All commits are squashed.
  • Targets the release branch 0.28.0.
  • Commit is signed and includes DCO sign-off.

Signed-off-by: Vladislav Lapin <51929896+loglapa@users.noreply.github.com>
@loglapa
loglapa marked this pull request as ready for review December 6, 2026 09:54

This branch has not been deployed

No deployments
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.

1 participant