diff --git a/google-cloud-bigtable-stats/src/main/java/com/google/cloud/bigtable/stats/BigtableStackdriverExportUtils.java b/google-cloud-bigtable-stats/src/main/java/com/google/cloud/bigtable/stats/BigtableStackdriverExportUtils.java index 3dfbcaaf25..00500dadc9 100644 --- a/google-cloud-bigtable-stats/src/main/java/com/google/cloud/bigtable/stats/BigtableStackdriverExportUtils.java +++ b/google-cloud-bigtable-stats/src/main/java/com/google/cloud/bigtable/stats/BigtableStackdriverExportUtils.java @@ -162,9 +162,6 @@ static String getDefaultTaskValue() { private static MetricKind createMetricKind(Type type) { switch (type) { - case GAUGE_INT64: - case GAUGE_DOUBLE: - return MetricKind.GAUGE; case CUMULATIVE_DOUBLE: case CUMULATIVE_INT64: case CUMULATIVE_DISTRIBUTION: @@ -176,13 +173,10 @@ private static MetricKind createMetricKind(Type type) { private static com.google.api.MetricDescriptor.ValueType createValueType(Type type) { switch (type) { - case GAUGE_DOUBLE: case CUMULATIVE_DOUBLE: return com.google.api.MetricDescriptor.ValueType.DOUBLE; - case GAUGE_INT64: case CUMULATIVE_INT64: return com.google.api.MetricDescriptor.ValueType.INT64; - case GAUGE_DISTRIBUTION: case CUMULATIVE_DISTRIBUTION: return com.google.api.MetricDescriptor.ValueType.DISTRIBUTION; default: diff --git a/google-cloud-bigtable-stats/src/main/java/com/google/cloud/bigtable/stats/BigtableStackdriverStatsExporter.java b/google-cloud-bigtable-stats/src/main/java/com/google/cloud/bigtable/stats/BigtableStackdriverStatsExporter.java index d9d2ed94f1..f4f0985700 100644 --- a/google-cloud-bigtable-stats/src/main/java/com/google/cloud/bigtable/stats/BigtableStackdriverStatsExporter.java +++ b/google-cloud-bigtable-stats/src/main/java/com/google/cloud/bigtable/stats/BigtableStackdriverStatsExporter.java @@ -40,8 +40,8 @@ public class BigtableStackdriverStatsExporter { @GuardedBy("lock") private static BigtableStackdriverStatsExporter instance = null; - // Default export interval is 5 minutes - private static final Duration EXPORT_INTERVAL = Duration.create(60 * 5, 0); + // Default export interval is 1 minute + private static final Duration EXPORT_INTERVAL = Duration.create(60, 0); private static final String RESOURCE_TYPE = "bigtable_client_raw"; private final IntervalMetricReader intervalMetricReader;