@@ -115,7 +115,7 @@ custom_content: |
115115
116116 TIP: If you are experiencing version conflicts with gRPC, see [Version Conflicts](#version-conflicts).
117117
118- ## OpenCensus Tracing
118+ ## Client request tracing: OpenCensus Tracing
119119
120120 Cloud Bigtable client supports [OpenCensus Tracing](https://opencensus.io/tracing/),
121121 which gives insight into the client internals and aids in debugging production issues.
@@ -171,6 +171,9 @@ custom_content: |
171171 .build());
172172 ```
173173
174+ You can view the traces on the Google Cloud Platform Console
175+ [Trace](https://console.cloud.google.com/traces) page.
176+
174177 By default traces are [sampled](https://opencensus.io/tracing/sampling) at a rate of about 1/10,000.
175178 You can configure a higher rate by updating the active tracing params:
176179
@@ -185,7 +188,7 @@ custom_content: |
185188 );
186189 ```
187190
188- ## OpenCensus Stats
191+ ## Enabling Cloud Bigtable Metrics: OpenCensus Stats
189192
190193 Cloud Bigtable client supports [Opencensus Metrics](https://opencensus.io/stats/),
191194 which gives insight into the client internals and aids in debugging production issues.
@@ -288,6 +291,34 @@ custom_content: |
288291 BigtableDataSettings.enableGfeOpenCensusStats();
289292 ```
290293
294+ You can view the metrics on the Google Cloud Platform Console
295+ [Metrics explorer](https://console.cloud.google.com/monitoring/metrics-explorer)
296+ page.
297+
298+ You can configure how frequently metrics are pushed to StackDriver and the
299+ [Monitored resource type](https://cloud.google.com/monitoring/api/resources) by
300+ updating `StackdriverStatsConfiguration`:
301+
302+ ``` java
303+ // Example: configuring export interval and monitored resource type
304+ StackdriverStatsExporter.createAndRegister(
305+ StackdriverStatsConfiguration.builder()
306+ .setProjectId("YOUR_PROJECT_ID")
307+ // Exporting metrics every 10 seconds
308+ .setExportInterval(Duration.create(10, 0))
309+ // Configure monitored resource type. A common practice is to use the
310+ // monitored resource objects that represent the physical resources
311+ // where your application code is running. See the full list of
312+ // monitored resource type here:
313+ // https://cloud.google.com/monitoring/api/resources
314+ .setMonitoredResource(MonitoredResource.newBuilder()
315+ .setType("global")
316+ .putLabels("project_id", "YOUR_PROJECT_ID")
317+ .build())
318+ .build()
319+ );
320+ ```
321+
291322 ## Version Conflicts
292323
293324 google-cloud-bigtable depends on gRPC directly which may conflict with the versions brought
0 commit comments