From b062cae17d3b81a52c660000c35187e8569ee083 Mon Sep 17 00:00:00 2001 From: Kiranmayi Bhamidimarri Date: Thu, 6 Jan 2022 13:59:30 +0530 Subject: [PATCH 1/2] feat: Updating readme with new gfe latency metrics --- .readme-partials.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.readme-partials.yaml b/.readme-partials.yaml index c57d2e9035c..f742485431b 100644 --- a/.readme-partials.yaml +++ b/.readme-partials.yaml @@ -83,6 +83,13 @@ custom_content: | it waits until a session is released into the pool by another thread) due to pool exhaustion since the server process started. + * `cloud.google.com/java/spanner/gfe_latency`: This metric shows latency between + Google's network receiving an RPC and reading back the first byte of the response. + + * `cloud.google.com/java/spanner/gfe_header_missing_count`: This metric shows the + number of RPC responses received without the server-timing header, most likely + indicating that the RPC never reached Google's network. + If you are using Maven, add this to your pom.xml file ```xml From 350a8235e900b2500acae10dee6b037a1c303239 Mon Sep 17 00:00:00 2001 From: Kiranmayi Bhamidimarri Date: Fri, 7 Jan 2022 10:32:40 +0530 Subject: [PATCH 2/2] Updating readme with latest opencensus version and updating metrics list --- .readme-partials.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.readme-partials.yaml b/.readme-partials.yaml index f742485431b..f2872f805b6 100644 --- a/.readme-partials.yaml +++ b/.readme-partials.yaml @@ -67,9 +67,9 @@ custom_content: | * `cloud.google.com/java/spanner/max_allowed_sessions`: This shows the maximum number of sessions allowed. - * `cloud.google.com/java/spanner/in_use_sessions`: This metric allows users to + * `cloud.google.com/java/spanner/num_sessions_in_pool`: This metric allows users to see instance-level and database-level data for the total number of sessions in - use (or checked out from the pool) at this very moment. + the pool at this very moment. * `cloud.google.com/java/spanner/num_acquired_sessions`: This metric allows users to see the total number of acquired sessions. @@ -95,19 +95,19 @@ custom_content: | io.opencensus opencensus-impl - 0.26.0 + 0.30.0 runtime io.opencensus opencensus-exporter-stats-stackdriver - 0.26.0 + 0.30.0 ``` If you are using Gradle, add this to your dependencies ```Groovy - compile 'io.opencensus:opencensus-impl:0.26.0' - compile 'io.opencensus:opencensus-exporter-stats-stackdriver:0.26.0' + compile 'io.opencensus:opencensus-impl:0.30.0' + compile 'io.opencensus:opencensus-exporter-stats-stackdriver:0.30.0' ``` At the start of your application configure the exporter: