Skip to content

Commit

Permalink
Merge pull request #158 from GoogleCloudPlatform/me_metrics
Browse files Browse the repository at this point in the history
MultiEndpoint metrics
  • Loading branch information
nimf committed Jan 27, 2023
2 parents 0388f59 + ebc0a7f commit 1bda48e
Show file tree
Hide file tree
Showing 6 changed files with 513 additions and 31 deletions.
2 changes: 1 addition & 1 deletion grpc-gcp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ repositories {
mavenLocal()
}

version = '1.3.2'
version = '1.4.0-SNAPSHOT'
group = 'com.google.cloud'
description = 'GRPC-GCP-Extension Java'
sourceCompatibility = '1.8'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,19 @@ class GcpMetricsConstants {
public static String RESULT_DESC = "Outcome.";
public static String RESULT_SUCCESS = "SUCCESS";
public static String RESULT_ERROR = "ERROR";
public static String ENDPOINT_LABEL = "endpoint";
public static String ENDPOINT_LABEL_DESC = "gRPC endpoint (addr:port).";
public static String STATUS_LABEL = "status";
public static String STATUS_LABEL_DESC = "Endpoint status.";
public static String STATUS_AVAILABLE = "AVAILABLE";
public static String STATUS_UNAVAILABLE = "UNAVAILABLE";
public static String ME_NAME_LABEL = "me_name";
public static String ME_NAME_LABEL_DESC = "Multi-endpoint name.";
public static String TYPE_LABEL = "type";
public static String TYPE_LABEL_DESC = "Switch type (fallback/recover/replace).";
public static String TYPE_FALLBACK = "FALLBACK";
public static String TYPE_RECOVER = "RECOVER";
public static String TYPE_REPLACE = "REPLACE";

// Unit to represent count.
static final String COUNT = "1";
Expand Down Expand Up @@ -54,4 +67,7 @@ class GcpMetricsConstants {
public static String METRIC_MAX_UNRESPONSIVE_DETECTION_TIME = "max_unresponsive_detection_time";
public static String METRIC_MIN_UNRESPONSIVE_DROPPED_CALLS = "min_unresponsive_dropped_calls";
public static String METRIC_MAX_UNRESPONSIVE_DROPPED_CALLS = "max_unresponsive_dropped_calls";
public static String METRIC_ENDPOINT_STATE = "endpoint_state";
public static String METRIC_ENDPOINT_SWITCH = "endpoint_switch";
public static String METRIC_CURRENT_ENDPOINT = "current_endpoint";
}

0 comments on commit 1bda48e

Please sign in to comment.