Repository navigation
feat: add google.bigtable.enable.internal.metrics config key - #4651
Open
igorbernstein2 wants to merge 1 commit into
Open
igorbernstein2 wants to merge 1 commit into
igorbernstein2 wants to merge 1 commit into
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces a new configuration option, BIGTABLE_ENABLE_INTERNAL_METRICS, to control whether built-in internal metrics are exported to Cloud Monitoring. It updates the documentation for client-side metrics to clarify the distinction, integrates the new setting into BigtableHBaseVeneerSettings, and adds corresponding unit tests to verify the default and explicit configurations. There are no review comments, so I have no feedback to provide.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add a separate
google.bigtable.enable.internal.metrics(BigtableOptionsFactory.BIGTABLE_ENABLE_INTERNAL_METRICS) configuration key to control built-in Cloud Monitoring metrics export (BigtableDataSettings.Builder#disableInternalMetrics()), independent ofgoogle.bigtable.enable.client.side.metrics.Changes
BigtableOptionsFactory:BIGTABLE_ENABLE_INTERNAL_METRICS = "google.bigtable.enable.internal.metrics"(enabled by default).BIGTABLE_ENABLE_CLIENT_SIDE_METRICSto clarify that it configuresMetricsProvidertoNoopMetricsProvider.INSTANCEand does not disable built-in Cloud Monitoring export controlled byBIGTABLE_ENABLE_INTERNAL_METRICS.BigtableHBaseVeneerSettings:BIGTABLE_ENABLE_INTERNAL_METRICSinbuildBigtableDataSettings(...)to calldataBuilder.disableInternalMetrics()when set tofalse, leavingBIGTABLE_ENABLE_CLIENT_SIDE_METRICSindependent.TestBigtableHBaseVeneerSettings:"false", explicitly enabling via"true", and verifyingBIGTABLE_ENABLE_CLIENT_SIDE_METRICS = "false"does not disable internal metrics.Testing
bigtable-hbaseunit test suite (mvn -pl bigtable-client-core-parent/bigtable-hbase -am test): 336 tests run, 0 failures, 0 errors (2 pre-existing@Ignoreskipped).enforcer,checkstyle(0 violations),animal-sniffer(java18:1.0),javadoc:javadoc(0 warnings on modified files), and formatting checks.