Skip to content

Commit 2f968ab

Browse files
committed
remove unused metric kind
1 parent 8feaeec commit 2f968ab

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

google-cloud-bigtable-stats/src/main/java/com/google/cloud/bigtable/stats/BigtableStackdriverExportUtils.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,6 @@ static String getDefaultTaskValue() {
162162

163163
private static MetricKind createMetricKind(Type type) {
164164
switch (type) {
165-
case GAUGE_INT64:
166-
case GAUGE_DOUBLE:
167-
return MetricKind.GAUGE;
168165
case CUMULATIVE_DOUBLE:
169166
case CUMULATIVE_INT64:
170167
case CUMULATIVE_DISTRIBUTION:
@@ -176,13 +173,10 @@ private static MetricKind createMetricKind(Type type) {
176173

177174
private static com.google.api.MetricDescriptor.ValueType createValueType(Type type) {
178175
switch (type) {
179-
case GAUGE_DOUBLE:
180176
case CUMULATIVE_DOUBLE:
181177
return com.google.api.MetricDescriptor.ValueType.DOUBLE;
182-
case GAUGE_INT64:
183178
case CUMULATIVE_INT64:
184179
return com.google.api.MetricDescriptor.ValueType.INT64;
185-
case GAUGE_DISTRIBUTION:
186180
case CUMULATIVE_DISTRIBUTION:
187181
return com.google.api.MetricDescriptor.ValueType.DISTRIBUTION;
188182
default:

google-cloud-bigtable-stats/src/main/java/com/google/cloud/bigtable/stats/BigtableStackdriverStatsExporter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ public class BigtableStackdriverStatsExporter {
4040
@GuardedBy("lock")
4141
private static BigtableStackdriverStatsExporter instance = null;
4242

43-
// Default export interval is 5 minutes
44-
private static final Duration EXPORT_INTERVAL = Duration.create(60 * 5, 0);
43+
// Default export interval is 1 minutes
44+
private static final Duration EXPORT_INTERVAL = Duration.create(60, 0);
4545
private static final String RESOURCE_TYPE = "bigtable_client_raw";
4646

4747
private final IntervalMetricReader intervalMetricReader;

0 commit comments

Comments
 (0)