Visitar URL original
clirr · googleapis/java-spanner@64e02f7 · GitHub
Skip to content
This repository was archived by the owner on Aug 30, 2026. It is now read-only.

Commit 64e02f7

Browse files
committed
clirr
1 parent 5b29243 commit 64e02f7

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

‎google-cloud-spanner/src/main/java/com/google/cloud/spanner/BuiltInMetricsConstant.java‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,17 @@ public class BuiltInMetricsConstant {
4646
static final String OPERATION_COUNT_NAME = "operation_count";
4747
static final String ATTEMPT_COUNT_NAME = "attempt_count";
4848

49+
public static final Set<String> SPANNER_METRICS =
50+
ImmutableSet.of(
51+
OPERATION_LATENCIES_NAME,
52+
ATTEMPT_LATENCIES_NAME,
53+
OPERATION_COUNT_NAME,
54+
ATTEMPT_COUNT_NAME,
55+
GFE_LATENCIES_NAME)
56+
.stream()
57+
.map(m -> METER_NAME + '/' + m)
58+
.collect(Collectors.toSet());
59+
4960
static final Collection<String> GRPC_METRICS_TO_ENABLE =
5061
ImmutableList.of(
5162
"grpc.lb.rls.default_target_picks",

0 commit comments

Comments
 (0)