Skip to content

Commit

Permalink
remove unused metric kind
Browse files Browse the repository at this point in the history
  • Loading branch information
mutianf committed Aug 11, 2022
1 parent 8feaeec commit 7475368
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7475368

Please sign in to comment.