diff --git a/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/it/BuiltinMetricsIT.java b/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/it/BuiltinMetricsIT.java index b4a21e3084..39ab3ffb23 100644 --- a/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/it/BuiltinMetricsIT.java +++ b/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/it/BuiltinMetricsIT.java @@ -68,12 +68,8 @@ public static void setUpClass() throws IOException { // Enable built in metrics BigtableDataSettings.enableBuiltinMetrics(); - MetricServiceSettings settings = - MetricServiceSettings.newBuilder() - .setEndpoint("staging-monitoring.sandbox.googleapis.com:443") - .build(); // Create a cloud monitoring client - metricClient = MetricServiceClient.create(settings); + metricClient = MetricServiceClient.create(g); } @AfterClass